Skip to content

Instantly share code, notes, and snippets.

@DoubleMalt
Forked from Manuela82/converter.py
Last active November 15, 2017 07:33
Show Gist options
  • Save DoubleMalt/debf6edb22b024f1d9f51c01f4e38c5b to your computer and use it in GitHub Desktop.
Save DoubleMalt/debf6edb22b024f1d9f51c01f4e38c5b to your computer and use it in GitHub Desktop.
converter
print "Hello, I'm converting kilometers into miles.\n"
answer = "yes"
while answer == "yes" or answer == "y":
kilometres = raw_input("Please enter the amount of kilometres: ")
miles = float(kilometres) * 0.621372
print miles
answer = raw_input("Do you want to do another conversion? ").lower()
print "Goodbye!!!"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment