File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 3
3
4
4
def celsius_to_fahrenheit (celsius ):
5
5
"""
6
- Convert a given value from Celsius to Fahrenheit
6
+ Convert a given value from Celsius to Fahrenheit
7
7
8
8
>>> celsius_to_fahrenheit(-40)
9
9
-40.0
@@ -33,4 +33,4 @@ def celsius_to_fahrenheit(celsius):
33
33
34
34
if __name__ == "__main__" :
35
35
import doctest
36
- doctest .testmod ()
36
+ doctest .testmod ()
Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ def fahrenheit_to_celsius(fahrenheit):
26
26
"""
27
27
Check whether given value is string and raise Type Error
28
28
"""
29
- raise TypeError ("'str' object cannot be interpreted as integer" )
29
+ raise TypeError ("'str' object cannot be interpreted as integer" )
30
30
31
31
celsius = (fahrenheit - 32 ) * 5 / 9 # value converted from fahrenheit to celsius
32
32
celsius = round (celsius , 2 )
You can’t perform that action at this time.
0 commit comments