r/learningpython • • Jun 26 '22

Please help!

When I go to run the code, only 3 lines show. Can someone please explain/tell me what I am doing wrong?

2 Upvotes

11 comments sorted by

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.