+ 2

Fahrenheit / celcius

Hi!, I have this code... celcius = int(input()) def conv(c): return 9 / 5 * c + 32 fahrenheit = conv(celsius) print(fahrenheit) which is the exact same code I used in the app to solve the exercise on one of the modules but when I try to run it on jupyter it shows me an error... NameError Traceback (most recent call last) <ipython-input-6-dc062fc9a3e8> in <module> 5 return 9 / 5 * c + 32 6 ----> 7 fahrenheit = conv(celsius) 8 print(fahrenheit) NameError: name 'celsius' is not defined I know this might be a very dumb question but I'm just starting to code and I have a lots of question being this one just one of them... thanks a lot in advance

23rd Dec 2020, 10:09 PM
Luiz Peralta
Luiz Peralta - avatar
5 Answers
+ 1
You may have a typo: celsius vs celcius
23rd Dec 2020, 10:20 PM
Sonic
Sonic - avatar
+ 2
I feel so stupid, I just saw it. Thx haha
23rd Dec 2020, 10:20 PM
Luiz Peralta
Luiz Peralta - avatar
+ 1
Luiz Peralta it happens 😁. No problem.
23rd Dec 2020, 10:22 PM
Sonic
Sonic - avatar
+ 1
.Osama Deep. You can use int to convert a string to an integer.
23rd Dec 2020, 10:23 PM
Sonic
Sonic - avatar
0
.Osama Deep. What's the point in copying my answer?
23rd Dec 2020, 10:25 PM
Sonic
Sonic - avatar