Ułóż w kolejności · Kurs Python · Moduł 1: Podstawy Pythona
Program konwersji temperatury
Uporządkuj kroki programu konwertującego Fahrenheit → Celsius:
Elementy do ułożenia
- celsius = (fahrenheit - 32) * 5/9
- print(f'{celsius}°C')
- fahrenheit = float(input('F: '))
Pokaż odpowiedź
Poprawna kolejność:
- fahrenheit = float(input('F: '))
- celsius = (fahrenheit - 32) * 5/9
- print(f'{celsius}°C')