I Haz Codes

Generic selectors
Exact matches only
Search in title
Search in content
Post Type Selectors
Menu
speed = distance / time

Enter the code below into python and save it as “speed.py”.

Make the following additions –
– Add a second input asking for time.
– Divide distance by time and store it into a variable called speed.
– display the answer with the units “m/s” after it.

distance = int(input("Enter the distance in meters - "))


You need to log in or create an account to submit code!

Comments are closed.

Information