Files
30-seconds-of-code/snippets/fahrenheit_to_celsius.md
Isabelle Viktoria Maciohsek 0ab4b3dbc5 Update snippet descriptions
2020-11-02 19:27:53 +02:00

18 lines
285 B
Markdown

---
title: fahrenheit_to_celsius
tags: math,beginner
---
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
```