348 B
348 B
title, type, tags, unlisted, cover, dateModified
| title | type | tags | unlisted | cover | dateModified | |
|---|---|---|---|---|---|---|
| Celsius to Fahrenheit | snippet |
|
true | last-light | 2021-01-04T12:47:04+02:00 |
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