Answers for "miles to km in python"

1

python module for converting miles to km

miles = 30
conversion_factor = 0.62137119

kilometers = miles / conversion_factor
print kilometers
Posted by: Guest on October-08-2020
1

python module for converting miles to km

kilometers = 6
conversion_factor = 0.62137119

miles = kilometers / conversion_factor
print miles
Posted by: Guest on October-08-2020
0

miles to km in python

try:
    Mile = int(input("Mile:- "))
    To_km = 1.60934*Mile
    print(Mile,"Mile = ",To_km,"Km")
except:
    print("Mile's must be number")
Posted by: Guest on September-02-2021

Python Answers by Framework

Browse Popular Code Answers by Language