Answers for "miles to km 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
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