thing = 'window'
if 'table' or 'chair' in thing.lower().split():
print('AHHHHHH I HATE THIS SO MUCH')
For some reason the statement is printed, even though 'table' or 'chair' are clearly not in the variable. Why does this happen?
thing = 'window'
if 'table' or 'chair' in thing.lower().split():
print('AHHHHHH I HATE THIS SO MUCH')
For some reason the statement is printed, even though 'table' or 'chair' are clearly not in the variable. Why does this happen?