Computer >> Computer tutorials >  >> Programming >> Python

How to Convert Kilometres to Miles using Python?


The ratio of Km to Mile is 1 km = 0.621371 mile

>>> km=5
>>> m=km*0.621371
>>> m
3.106855