Put in order · Python course · Module 1: Python Basics

Temperature Conversion Program

Order the steps of a program converting Fahrenheit → Celsius:

Items to put in order

  • celsius = (fahrenheit - 32) * 5/9
  • print(f'{celsius}°C')
  • fahrenheit = float(input('F: '))
Show the answer

Correct order:

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