the-honk/gcse computer science/year 9/python challenges/22 - Speed, Distance, Time.py

6 lines
244 B
Python
Raw Normal View History

2024-10-09 17:02:27 +00:00
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))