+ 3
Temperature conversion
celsius = int(input()) def conv(c): #your code goes here if c==celsius: Y= 9/5 * celsius + 32 print(Y) fahrenheit = conv(celsius) print(fahrenheit) I can't remove the none from the answer, is there a way to remove none
4 Answers
+ 8
Use
conv(celsius ) only
+ 6
Wanna Watched it đhttps://code.sololearn.com/cPubX09zV06b/?ref=app
+ 4
You are not returning anything from conv() function.
In the 2nd last statement, you are accepting answer into Fahrenheit, and as your function isnt returning anything, Fahrenheit is assigned none.
So either add a return statement in place of print in the function, or remove the print(Fahrenheit) statement.
I hope u get what I'm saying.đ
I'm quite bad at explaining
+ 1
Thanks SAYEDđ§đ©đ§đ©, Chiku