0

Where is the error

celsius = int(input()) def conv(c): #your code goes here fahrenheit =9/5*celsius+32 return fahrenheit = conv(celsius) print(celsius )

6th Apr 2021, 7:48 PM
Noureddine
Noureddine - avatar
5 Réponses
+ 2
you are returning nothing.. Return calculated fahremheit and print that catched value... (not input, its not changing..)
6th Apr 2021, 8:00 PM
Jayakrishna 🇮🇳
+ 1
admit it, where did you get this code? did you write it yourself or not?
6th Apr 2021, 9:03 PM
Yaroslav Vernigora
Yaroslav Vernigora - avatar
+ 1
Jayakrishna🇮🇳 why do we insert a value "c"in the conv() function? this thing is not present anywhere in the code
6th Apr 2021, 9:06 PM
Yaroslav Vernigora
Yaroslav Vernigora - avatar
+ 1
Noureddine There are a number of problems with your code, which indicate you would be advised to review functions. See if this helps, note the function needs to be called celsius = int(input()) def conv(c): #your code goes here fahrenheit =9/5 * c +32 return fahrenheit print(conv(celsius))
6th Apr 2021, 9:36 PM
Rik Wittkopp
Rik Wittkopp - avatar
0
Thanks
7th Apr 2021, 6:26 AM
Noureddine
Noureddine - avatar