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:
- fahrenheit = float(input('F: '))
- celsius = (fahrenheit - 32) * 5/9
- print(f'{celsius}°C')