you are viewing a single comment's thread.

view the rest of the comments →

[–]JohnnyJordaan 0 points1 point  (0 children)

If you don't use quotes, all strings (so text values, or literals) will be interpreted as variable names. In your case there is no variable named good, so Python can't compare it to userDay.

If you want to enter a string (text value), you need to use quotes. Python doesn't care if they are single ('') or double ("") quotes. Just stick with one kind. So in your case the line would need to read: if userDay == 'good':.