Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- print("What would you like to exchange? Pick the number")
- print("1 - PLN to USD = 4.3PLN")
- print("2 - USD to PLN")
- print("3 - PLN to EUR = 4.5PLN")
- print("4 - EUR to PLN")
- usd = 4.3
- eur = 4.5
- pick = input() # wybor czy wymiana dolara czy eur
- amount = int(input()) #wpisanie kwoty do wymiany
- withdraw = int #ile zostanie wyplacone
- if pick == "1":
- withdraw = amount * usd
- print("You will get: ", "$ " + str(withdraw))
- elif pick =="2":
- withdraw = amount * usd
- print("You will get: ", "PLN " + str(withdraw))
- elif pick == "3":
- withdraw = amount * eur
- print("You will get: ", "EUR " + str(withdraw))
- elif pick == "4":
- withdraw = amount * eur
- print("You will get: ", "PLN " + str(withdraw))
- else:
- print()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement