SPEED CALCULATION PYTHON PROGRAMMING
x = int(input("enter the distance in m : "))
y = int(input("enter the time in sec : "))
speed = x/y # speed in m/sec
print("the speed is (m/sec) : ",speed)
speed1 = x/y * 18/5 #speed in km/h
print("the speed in km/h :",speed1)
OUTPUT:
enter the distance in m : 1
enter the time in sec : 2
the speed is (m/sec) : 0.5
the speed in km/h : 1.8