All projects
Beginner+60 XP
Temperature Converter
Build two small functions that convert temperatures, then print a tidy conversion table with formatted numbers. Great practice with functions, arithmetic, and f-strings.
Requirements
- 1
Define
c_to_f(c)returning Celsius converted to Fahrenheit - 2
Define
f_to_c(f)returning Fahrenheit converted to Celsius - 3
Print at least one conversion using an f-string with 1 decimal place
Build it here — edit the starter code and hit Run:
temperature-converter.py · editable