Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@computer-tutor
Created April 28, 2020 09:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save computer-tutor/7c7930237b373a0f881128b9ab81b245 to your computer and use it in GitHub Desktop.
Save computer-tutor/7c7930237b373a0f881128b9ab81b245 to your computer and use it in GitHub Desktop.
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