Files
30-seconds-of-code/snippets/fahrenheit_to_celsius.md
Isabelle Viktoria Maciohsek 19f636408c Make expertise a field
2022-03-01 20:27:27 +02:00

22 lines
374 B
Markdown

---
title: Fahrenheit to Celsius
tags: math
expertise: beginner
unlisted: true
firstSeen: 2020-04-05T12:29:03+03:00
lastUpdated: 2021-01-04T12:47:04+02:00
---
Converts Fahrenheit to Celsius.
- Follow the conversion formula `C = (F - 32) * 5 / 9`.
```py
def fahrenheit_to_celsius(degrees):
return ((degrees - 32) * 5 / 9)
```
```py
fahrenheit_to_celsius(77) # 25.0
```