Simple Arithmetic, Input and Output in Python
Celsius to Fahrenheit Conversion
T°F = T°C * 9/5 + 32
Converting 22 °C to °F
22 * 9 / 5 + 32
Output: 71.6 (°F)
def celsius_to_fahrenheit(celsius):
return celsius * 9 / 5 + 32
print(celsius_to_fahrenheit(22))