Last active
April 28, 2017 21:32
-
-
Save daniel-obrien/baf3055ef665a7df3acbea8e68c14061 to your computer and use it in GitHub Desktop.
Currency Converter
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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