19 lines
301 B
Markdown
19 lines
301 B
Markdown
---
|
|
title: fahrenheit_to_celsius
|
|
tags: math,beginner
|
|
unlisted: true
|
|
---
|
|
|
|
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
|
|
```
|