+ 1

Def problem, plz help, thank you

celsius = int(input()) def conv(c): print(9/5*c+32) #your code goes here fahrenheit = conv(celsius) print(fahrenheit) #may i ask why there is a none in the output??

1st Jun 2022, 4:08 AM
Cham Sum Lau
2 Answers
+ 4
because the `conv` function does not return a value, so by default it returns None every time is called. To fix this just modify the line as: `return 9/5*c+32`
1st Jun 2022, 4:52 AM
Ervis Meta
Ervis Meta - avatar