Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def a():
- print("Select Currency")
- print("A-USD to Guatemalan Quetzal")
- print("B-USD to Brazilian Real")
- print("C-USD to South African Rand")
- print("D-USD to European Euro")
- print("E-USD to British Pound")
- print("F-USD to Russian Ruble")
- ex = input("G-USD to Japanese Yen\n")
- if ex == "A":
- ptd = float(input("How much would you like to convert: "))
- f= ptd*7.343
- print("It is $",f)
- if ex == "B":
- ptd = float(input("How much would you like to convert: "))
- f= ptd*3.185
- print("It is $",f)
- if ex == "C":
- ptd = float(input("How much would you like to convert: "))
- f= ptd*13.722
- print("It is $",f)
- if ex == "D":
- ptd = float(input("How much would you like to convert: "))
- f= ptd*0.847
- print("It is $",f)
- if ex == "E":
- ptd = float(input("How much would you like to convert: "))
- f= ptd*0.759
- print("It is $",f)
- if ex == "F":
- ptd = float(input("How much would you like to convert: "))
- f= ptd*57.574
- print("It is $",f)
- if ex == "G":
- ptd = float(input("How much would you like to convert: "))
- f= ptd*113.395
- print("It is $",f)
- d = input("Would You like to convert from USD(1) or to USD(2) or Other(3)")
- if d == "1":
- a()
- elif d == "2":
- b()
- elif d == "3":
- c()
- else:
- print("Did not understand you, GOODBYE!!!")
- def b():
- print("Select Currency")
- print("A-Guatemalan Quetzal to USD")
- print("B-Brazilian Real to USD")
- print("C-South African Rand to USD")
- print("D-European Euro to USD")
- print("E-British Pound to USD")
- print("F-Russian Ruble to USD")
- ex = input("G-Japanese Yen to USD\n")
- if ex == "A":
- ptd = float(input("How much would you like to convert: "))
- f= ptd*0.136
- print("It is $",f)
- if ex == "B":
- ptd = float(input("How much would you like to convert: "))
- f= ptd*0.314
- print("It is $",f)
- if ex == "C":
- ptd = float(input("How much would you like to convert: "))
- f= ptd*0.072
- print("It is $",f)
- if ex == "D":
- ptd = float(input("How much would you like to convert: "))
- f= ptd*1.179
- print("It is $",f)
- if ex == "E":
- ptd = float(input("How much would you like to convert: "))
- f= ptd*1.316
- print("It is $",f)
- if ex == "F":
- ptd = float(input("How much would you like to convert: "))
- f= ptd*0.017
- print("It is $",f)
- if ex == "G":
- ptd = float(input("How much would you like to convert: "))
- f= ptd*0.008
- print("It is $",f)
- d = input("Would You like to convert from USD(1) or to USD(2) or Other(3)")
- if d == "1":
- a()
- elif d == "2":
- b()
- elif d == "3":
- c()
- else:
- print("Did not understand you, GOODBYE!!!")
- def c():
- print("Select Currency")
- print("A-Guatemalan Quetzal to Brazilian Real")
- print("B-Guatemalan Quetzal to South African Rand")
- print("C-Guatemalan Quetzal to European Euro")
- print("D-Guatemalan Quetzal to British Pound")
- print("E-Guatemalan Quetzal to Russian Ruble")
- print("F-Guatemalan Quetzal to Japanese Yen")
- print("")
- print("G-Brazilian Real to Guatemalan Quetzal")
- print("H-Brazilian Real to South African Rand")
- print("I-Brazilian Real to European Euro")
- print("J-Brazilian Real to British Pound")
- print("K-Brazilian Real to Russian Ruble")
- print("L-Brazilian Real to Japanese Yen")
- print("")
- print("M-South African Rand to Guatemalan Quetzal")
- print("N-South African Rand to Brazilian Real")
- print("O-South African Rand to European Euro")
- print("P-South African Rand to British Pound")
- print("Q-South African Rand to Russian Ruble")
- print("R-South African Rand to Japanese Yen")
- print("")
- print("S-European Euro to Guatemalan Quetzal")
- print("T-European Euro to Brazilian Real")
- print("U-European Euro to South African Rand")
- print("V-European Euro to British Pound")
- print("W-European Euro to Russian Ruble")
- print("X-European Euro to Japanese Yen")
- print("")
- print("1-British Pound to Guatemalan Quetzal")
- print("2-British Pound to Brazilian Real")
- print("3-British Pound to South African Rand")
- print("4-British Pound to European Euro")
- print("5-British Pound to Russian Ruble")
- print("6-British Pound to Japanese yen")
- print("")
- print("7-Russian Ruble to Guatemalan Quetzal")
- print("8-Russian Ruble to Brazilian Real")
- print("9-Russian Ruble to South African Rand")
- print("10-Russian Ruble to European Euro")
- print("11-Russian Ruble to British Pound")
- print("12-Russian Ruble to Japanese Yen")
- print("")
- print("13-Japanese Yen to Guatemalan Quetzal")
- print("14-Japanese Yen to Brazilian Real")
- print("15-Japanese Yen to South African Rand")
- print("16-Japanese Yen to European Euro")
- print("17-Japanese Yen to British Pound")
- ex = input("18-Japanese Yen to Russian Ruble\n")
- if ex == "A":
- ptd = float(input("How much would you like to convert: "))
- f= ptd*0.442
- print("It is $",f)
- if ex == "B":
- ptd = float(input("How much would you like to convert: "))
- f= ptd*1.869
- print("It is $",f)
- if ex == "C":
- ptd = float(input("How much would you like to convert: "))
- f= ptd*0.115
- print("It is $",f)
- if ex == "D":
- ptd = float(input("How much would you like to convert: "))
- f= ptd*0.103
- print("It is $",f)
- if ex == "E":
- ptd = float(input("How much would you like to convert: "))
- f= ptd*7.832
- print("It is $",f)
- if ex == "F":
- ptd = float(input("How much would you like to convert: "))
- f= ptd*15.5
- print("It is $",f)
- if ex == "G":
- ptd = float(input("How much would you like to convert: "))
- f= ptd*2.265
- print("It is $",f)
- if ex == "H":
- ptd = float(input("How much would you like to convert: "))
- f= ptd*4.389
- print("It is $",f)
- if ex == "I":
- ptd = float(input("How much would you like to convert: "))
- f= ptd*0.262
- print("It is $",f)
- if ex == "J":
- ptd = float(input("How much would you like to convert: "))
- f= ptd*0.233
- print("It is $",f)
- if ex == "K":
- ptd = float(input("How much would you like to convert: "))
- f= ptd*17.761
- print("It is $",f)
- if ex == "L":
- ptd = float(input("How much would you like to convert: "))
- f= ptd*35.096
- print("It is $",f)
- if ex == "M":
- ptd = float(input("How much would you like to convert: "))
- f= ptd*0.516
- print("It is $",f)
- if ex == "N":
- ptd = float(input("How much would you like to convert: "))
- f= ptd*0.288
- print("It is $",f)
- if ex == "O":
- ptd = float(input("How much would you like to convert: "))
- f= ptd*0.059
- print("It is $",f)
- if ex == "P":
- ptd = float(input("How much would you like to convert: "))
- f= ptd*0.053
- print("It is $",f)
- if ex == "Q":
- ptd = float(input("How much would you like to convert: "))
- f= ptd*4.053
- print("It is $",f)
- if ex == "R":
- ptd = float(input("How much would you like to convert: "))
- f= ptd*7.999
- print("It is $",f)
- if ex == "S":
- ptd = float(input("How much would you like to convert: "))
- f= ptd*8.636
- print("It is $",f)
- if ex == "T":
- ptd = float(input("How much would you like to convert: "))
- f= ptd*3.819
- print("It is $",f)
- if ex == "U":
- ptd = float(input("How much would you like to convert: "))
- f= ptd*16.141
- print("It is $",f)
- if ex == "V":
- ptd = float(input("How much would you like to convert: "))
- f= ptd*0.894
- print("It is $",f)
- if ex == "W":
- ptd = float(input("How much would you like to convert: "))
- f= ptd*67.64
- print("It is $",f)
- if ex == "X":
- ptd = float(input("How much would you like to convert: "))
- f= ptd*133.395
- print("It is $",f)
- if ex == "1":
- ptd = float(input("How much would you like to convert: "))
- f= ptd*9.689
- print("It is $",f)
- if ex == "2":
- ptd = float(input("How much would you like to convert: "))
- f= ptd*4.282
- print("It is $",f)
- if ex == "3":
- ptd = float(input("How much would you like to convert: "))
- f= ptd*18.778
- print("It is $",f)
- if ex == "4":
- ptd = float(input("How much would you like to convert: "))
- f= ptd*1.125
- print("It is $",f)
- if ex == "5":
- ptd = float(input("How much would you like to convert: "))
- f= ptd*76.003
- print("It is $",f)
- if ex == "6":
- ptd = float(input("How much would you like to convert: "))
- f= ptd*150.129
- print("It is $",f)
- if ex == "7":
- ptd = float(input("How much would you like to convert: "))
- f= ptd*0.127
- print("It is $",f)
- if ex == "8":
- ptd = float(input("How much would you like to convert: "))
- f= ptd*0.0561
- print("It is $",f)
- if ex == "9":
- ptd = float(input("How much would you like to convert: "))
- f= ptd*0.024
- print("It is $",f)
- if ex == "10":
- ptd = float(input("How much would you like to convert: "))
- f= ptd*0.0147
- print("It is $",f)
- if ex == "11":
- ptd = float(input("How much would you like to convert: "))
- f= ptd*0.013
- print("It is $",f)
- if ex == "12":
- ptd = float(input("How much would you like to convert: "))
- f= ptd*1.974
- print("It is $",f)
- if ex == "13":
- ptd = float(input("How much would you like to convert: "))
- f= ptd*0.064
- print("It is $",f)
- if ex == "14":
- ptd = float(input("How much would you like to convert: "))
- f= ptd*0.028
- print("It is $",f)
- if ex == "15":
- ptd = float(input("How much would you like to convert: "))
- f= ptd*0.120
- print("It is $",f)
- if ex == "16":
- ptd = float(input("How much would you like to convert: "))
- f= ptd*0.007
- print("It is $",f)
- if ex == "17":
- ptd = float(input("How much would you like to convert: "))
- f= ptd*0.006
- print("It is $",f)
- if ex == "18":
- ptd = float(input("How much would you like to convert: "))
- f= ptd*0.505
- print("It is $",f)
- d = input("Would You like to convert from USD(1) or to USD(2) or Other(3)")
- if d == "1":
- a()
- elif d == "2":
- b()
- elif d == "3":
- c()
- else:
- print("Did not understand you, GOODBYE!!!")
- print("Welcome to the Currency Exchange")
- d = input("Would You like to convert from USD(1) or to USD(2) or Other(3)")
- if d == "1":
- a()
- elif d == "2":
- b()
- elif d == "3":
- c()
- else:
- print("Did not understand you, GOODBYE!!!")
Add Comment
Please, Sign In to add comment