Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
def miletokm(mile):
return mile*1.609
def kmtomile(km):
return km*0.62
def feettoinches(feet):
return feet*12
def inchestofeet(inch):
return inch*0.0833
#Constants
MILES= '1.609344 KM'
FEET = '12 INCHES'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment