Python elif Statement with OR Operator using combines two basic conditional expressions in a Boolean expression.
Checking weekday and weekend string in if statement.
today = 'Sunday' if today == 'Monday': print('Your weekend is over. Go to work.') elif today == 'Sunday' or today == 'Saturday': print('Today is off.') else: print('Go to work.')
Note: IDE: PyCharm 2021.3.3 (Community Edition)
All Python Examples are in Python 3, so Maybe its different from python 2 or upgraded versions.