This repository has been archived on 2025-10-25. You can view files and clone it, but cannot push or open issues or pull requests.
Files
python_it_top/Practica3/task2_rpo254.py
2025-09-22 13:46:31 +05:00

29 lines
860 B
Python
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import sys as os # удобнее так :3
while True:
print("список для перевода в руб\n"
"- 1. В доллары\n"
"- 2. В Юани\n"
"- 3. В тенге\n"
"- 4. в Гривны\n"
"- 0. выход")
choice = int(input("Выберите :: "))
res = int(input("Сумма(RUB) :: "))
if choice == 0:
print("выход")
os.exit(1)
elif choice == 1:
print(f"usd: {res / 83.66}")
os.exit(1)
elif choice == 2:
print(f"cny: {res / 11.76}")
os.exit(1)
elif choice == 3:
print(f"kzt: {res / 0.15}")
os.exit(1)
elif choice == 4:
print(f"uah: {res / 2.02}")
os.exit(1)
else:
print("ОШИБКА! не введено число из списка")
os.exit(1)