temp = input("Input the temperature you like to convert? (e.g., 45F, 102C etc.) : ") degree = int(temp:-1]) i_convention = temp[-1] if i_convention.upper() = "C": result = int(round((9 * degree) / 5 + 32)) o convention = "Fahrenheit" elif i_convention.upper() == "F": result = int(round((degree - 32) * 5 / 9)) o_convention = "Celsius" else: print("Input proper convention.") quit() print("The temperature in", o_convention, "is", result, "degrees.") Очно и дистанционно В месяц - 8 занятий - 4 недели - 2 раза в неделю - индивидуальные занятия с репетитором Приходите на занятия в компанию "Языковая мастерская" Репетитор помогает понимать, писать, говорить на языке Интересно? Пишите, звоните ✅ Электронная почта- dibrpa85641@mail.ru ✅ Телефон +7-925-471-18-35 Денис ✅ Сайт Вконтакте - https://vk.com/languagestudio5
Найти ошибки в коде на Python
23 июня23 июн
1
~1 мин