285 B
285 B
title, tags
| title | tags |
|---|---|
| celsius_to_fahrenheit | math,beginner |
Converts Celsius to Fahrenheit.
- Follow the conversion formula
F = 1.8 * C + 32.
def celsius_to_fahrenheit(degrees):
return ((degrees * 1.8) + 32)
celsius_to_fahrenheit(180) # 356.0