+ 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
5 Respuestas
+ 1
You may have a typo: celsius vs celcius
+ 2
I feel so stupid, I just saw it. Thx haha
+ 1
Luiz Peralta it happens 😁. No problem.
+ 1
.Osama Deep. You can use int to convert a string to an integer.
0
.Osama Deep. What's the point in copying my answer?