I think the tutorial is trying to explain that:
1. or keyword expects a boolean expression after it.
2. if a string is placed after or, like what you have placed:
Anything or ed with True will get True as result
3. So instead if writing the conditional statement like above
You have to write like this:
1. or keyword expects a boolean expression after it.
2. if a string is placed after or, like what you have placed:
if favoritePlace is "italy" or "Italy":is always be evaluated as True
Anything or ed with True will get True as result
3. So instead if writing the conditional statement like above
You have to write like this:
if favoritePlace =="italy" or favoritePlace == "Italy":