Why does this not output the fahrenheit | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Why does this not output the fahrenheit

celsius = int(input()) def conv(x): x*=9/5 x+=32 fahrenheit = conv(celsius) print (fahrenheit)

6th Sep 2022, 3:29 PM
Oliver Mahon
Oliver Mahon - avatar
1 Answer
+ 5
Because you didn't return value in function
6th Sep 2022, 3:31 PM
A͢J
A͢J - avatar