miles to km in python

Solutions on MaxInterview for miles to km in python by the best coders in the world

showing results for - "miles to km in python"
Isabel
16 Jan 2017
1miles = 30
2conversion_factor = 0.62137119
3
4kilometers = miles / conversion_factor
5print kilometers
Sara
31 Nov 2018
1kilometers = 6
2conversion_factor = 0.62137119
3
4miles = kilometers / conversion_factor
5print miles
Veronica
15 Jul 2019
1try:
2    Mile = int(input("Mile:- "))
3    To_km = 1.60934*Mile
4    print(Mile,"Mile = ",To_km,"Km")
5except:
6    print("Mile's must be number")