I Haz Codes

Exact matches only
Search in title
Search in content
Search in posts
Search in pages
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