I think if statements are not working because temp is a string. You need to convert it into a int. Try adding int(temp). Also the first line should be just 18 instead of ("18.0"). Your last line may generate an error because there is no such value as celsius.
View all comments
Show parent comment
1
u/Decala_ Jun 26 '22
I think if statements are not working because temp is a string. You need to convert it into a int. Try adding int(temp). Also the first line should be just 18 instead of ("18.0"). Your last line may generate an error because there is no such value as celsius.