Files
Prog_3A/Prog_1/Terminal_Programms/Fahrenheit_to_Celsius.py
T
2026-10-19 20:29:13 +02:00

4 lines
104 B
Python

def fahrenheit_to_celsius(f):
c = (5.0 / 9.0) * (f - 32)
print(f"current temperature: {c:.1f}")