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ść:

  1. fahrenheit = float(input('F: '))
  2. celsius = (fahrenheit - 32) * 5/9
  3. print(f'{celsius}°C')