Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- try:
- print(" Euro == 1 \n Pound == 2 \n Dollar == 3")
- user_amount = int(input("What's the currency you want sire? : "))
- user_input = int(input("How much of that currency you want to convert? : "))
- print(" Euro == 1 \n Pound == 2 \n Dollar == 3")
- convert_input = int(input("Whats the currency you want to convert it to, sire? : "))
- except ValueError:
- exit("RIP you didn't enter a number, soz mate")
- def de():
- out1 = user_input / 1.11
- return out1
- def pd():
- out2 = user_input * 1.21
- return out2
- def dp():
- out3 = user_input / 1.21
- return out3
- def pe():
- out4 = user_input * 1.09
- return out4
- def ep():
- out5 = user_input / 1.09
- return out5
- def ed():
- out6 = user_input * 1.11
- return out6
- def ee():
- out7 = user_input * 1
- return out7
- def dd():
- out8 = user_input * 1
- return out8
- def pp():
- out9 = user_input * 1
- return out9
- if user_amount == 1 and convert_input == 1:
- print(ee())
- if user_amount == 1 and convert_input == 2:
- print(ep())
- if user_amount == 1 and convert_input == 3:
- print(ed())
- if user_amount == 2 and convert_input == 1:
- print(pe())
- if user_amount == 2 and convert_input == 2:
- print(pp())
- if user_amount == 2 and convert_input == 3:
- print(pd())
- if user_amount == 3 and convert_input == 1:
- print(de())
- if user_amount == 3 and convert_input == 2:
- print(dp())
- if user_amount == 3 and convert_input == 3:
- print(dd())
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement