Скачиваний:
2
Добавлен:
03.06.2024
Размер:
326 б
Скачать
def celsius(func):
    def wrapper(f: int):
        result = (func(f)-32)*5/9
        return result
    return wrapper

@celsius
def temperature_fahrenheit(f: int):
    return f

assert temperature_fahrenheit(32) == 0
assert temperature_fahrenheit(50) == 10
inp = int(input())

print(temperature_fahrenheit(inp))
Соседние файлы в папке 6