the-honk/school/gcse/year 9/python challenges/22 - Speed, Distance, Time.py
2021-12-21 19:46:28 +00:00

6 lines
No EOL
244 B
Python

def speed(distance, time):
return distance / time
distance = int(input('Please input the distance (in metres).'))
seconds = int(input('Please input the time (in seconds) that the journey was completed in.'))
print(speed(distance, seconds))