Help please!! | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 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
6 Answers
+ 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
0
𝐊𝐢𝐢𝐛𝐨 𝐆𝐡𝐚𝐲𝐚𝐥 bro how to post link as I write this code on python try yourself??
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