+ 1

Help please!!

Why is my code giving syntax error on line 5 as it all fine to me:- def KelvinToFahrenheit(Temperature): assert (Temperature >= 0),"Colder than absolute zero!" return ((Temperature-273)*1.8)+32 print KelvinToFahrenheit(273) print int(KelvinToFahrenheit(505.78)) print KelvinToFahrenheit(-5)

14th May 2020, 2:31 PM
Tejas Joshi
Tejas Joshi - avatar
10 Respostas
+ 1
As already mentioned, its always better to link the complete code here if it creates problems.
14th May 2020, 2:59 PM
Lothar
Lothar - avatar
14th May 2020, 3:17 PM
Tejas Joshi
Tejas Joshi - avatar
14th May 2020, 3:21 PM
Tejas Joshi
Tejas Joshi - avatar
14th May 2020, 3:22 PM
Tejas Joshi
Tejas Joshi - avatar
0
thanks bro.......how can I make such a stupid mistake by not adding brackets😳😳
14th May 2020, 3:34 PM
Tejas Joshi
Tejas Joshi - avatar
14th May 2020, 7:48 PM
Nidhi Verma