Skip to content

Instantly share code, notes, and snippets.

@daniel-obrien
Last active April 28, 2017 21:32
Show Gist options
  • Save daniel-obrien/baf3055ef665a7df3acbea8e68c14061 to your computer and use it in GitHub Desktop.
Save daniel-obrien/baf3055ef665a7df3acbea8e68c14061 to your computer and use it in GitHub Desktop.
Currency Converter
#BETA
def usdconversion():
usdmoney=(int(input("Please enter the amount of EURO you would like to convert to USD")))
usdconverter = 1.10
usdthing = 1/usdconverter
usdmoney = usdmoney*usdconverter
print(usdmoney)
def gbpconversion():
gbpmoney=(int(input("Please enter the amount of EURO you would like to convert to GBP")))
gbpconverter = 1.11
gbpmoney = gbpconverter*gbpmoney
print(gbpmoney)
print("Welcome to the Currency Converter!")
currency_selection=input("What Currency would you like to convert to from EURO?, USD(US Dollars), GBP(British Pound Sterling)")
if currency_selection == "USD":
print("Ok, US Dollars Converter......")
usdconversion()
elif currency_selection == "GBP":
print("Ok, British Pound Sterling Converter......")
gbpconversion()
else:
print("We don't have that Currency yet, search 'currency converter' on Google")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment