1 2 3 4 |
T4Tutorials_KM = float (input ("Please enter the speed of the motor cycle in Kilometre as a unit: ")) ConversionRatio = 0.621371 Miles = T4Tutorials_KM * ConversionRatio print ("The speed value of the motor cycle in Miles: ", Miles) |
1 2 3 4 5 6 |
def T4Tutorials_KM(km): ConversionRatio= 0.621371 miles_1 = km * ConversionRatio print ("The speed value of car in Miles: ", miles_1) km = float (input ("Please enter the speed of car in Kilometre as a unit: ")) T4Tutorials_KM(km) |