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/Practica1/task_3_rpo254.py

30 lines
771 B
Python

# Вывод названия программы
print(":: Перевод метров в ярд, дюйм, мили ::")
# Ввод метров и перевод в тип данных float
meter = input("Введите метр :: ")
meter = float(meter)
# Описывание 1 ед измерения, равному 1м
duim = 39.370078740157
yard = 1.09361
mile = 0.000621371
# Умножение кол во метров на ед измерения в 1м
duim_meter = meter * duim
yard_meter = meter * yard
mile_meter = meter * mile
# Вывод значений
print("Вывод:\n"
" - Мили: {}\n"
" - Дюйм: {}\n"
" - Ярды: {}"
.format(
mile_meter,
duim_meter,
yard_meter
)
)