Hello! Please, How do I correct the Variable 'fahrenheit' before assignment? Is anything wrong in my coding? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Hello! Please, How do I correct the Variable 'fahrenheit' before assignment? Is anything wrong in my coding?

celsius = int(input(36)) def conv(c): # calculate fahrenheit fahrenheit = (int)(celsius * 9/5) + 32 print(celsius,"Celsius is converted",fahrenheit, "Fahrenheit") fahrenheit = conv(celsius) print(fahrenheit)

9th Jan 2021, 2:50 AM
Damilare Jolayemi
Damilare Jolayemi - avatar
1 Answer
+ 4
Your function is not returning anything
9th Jan 2021, 2:55 AM
Arsenic
Arsenic - avatar