Skip to content

Commit 1eea7b0

Browse files
committed
add missing docstring
1 parent 3431782 commit 1eea7b0

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

climate_analysis.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,14 @@ def FahrToCelsius(fahr):
1515
celsius = ((fahr - 32) * (5/9))
1616
return celsius
1717
def FahrToKelvin(fahr):
18+
"""Converts fahrenheit to kelvin
19+
20+
Args:
21+
fahr (float): temperature in fahrenheit
22+
23+
Returns:
24+
float: temperature in kelvin
25+
"""
1826
kelvin = FahrToCelsius(fahr) + 273.15
1927
return kelvin
2028

0 commit comments

Comments
 (0)