Operators · Python example
Convert a temperature with a formula and formatted output.
Temperature conversion is a short exercise in operator precedence and float formatting.
celsius = 37
fahrenheit = (celsius * 9 / 5) + 32
print(f"{celsius}°C = {fahrenheit:.1f}°F")