Why does using the 'or' operator give different results in this case? Why must I write the day.weekday() twice rather than just == 5 or 6
This is the option that works
if day.weekday() == 5 or day.weekday() == 6:
This is the option that gives a different result
if day.weekday() == 5 or 6: