SHOW:
|
|
- or go back to the newest paste.
1 | - | a = int(input("a = ")) |
1 | + | money = int(input("Введите сумму денег: ")) |
2 | - | b = int(input("b = ")) |
2 | + | |
3 | - | c = int(input("c = ")) |
3 | + | USD = 79.60 |
4 | - | list = [a, b, c] |
4 | + | EUR = 93.18 |
5 | - | for i in list: |
5 | + | |
6 | - | if list.count (i) > 1: |
6 | + | currency = input("Выберите USD/EUR: ") |
7 | - | print (i) |
7 | + | |
8 | - | else: |
8 | + | if currency == "USD": |
9 | - | print ("Совпадений нет") |
9 | + | print(round(money * USD, 3)) |
10 | ||
11 | elif currency == "EUR": | |
12 | print(round(money * EUR, 3)) | |
13 | ||
14 |