+ 2
What's the problem with this code can anyone plz explain?😐
celsius = int(input()) def conv(c): #your code goes here fahrenheit =conv(9/5*celsius)+32 print(fahrenheit) return fahrenheit
2 Respostas
+ 4
Muhtasinul
Why you are printing value as well as returing also. Either you print value in function or return value in function then print function.
+ 3
Change your code to
celsius =int(input)
def conv(c):
return 9/5*celsius+32
fahrenheit = conv(celsius)
print(fahrenheit)
Next time return value in function before printing it