I am making an impossibly simple piece of code to check for words in a string of inputted text but the IN is returning true when it obviously should return false and I've tested different versions of the code for a few hours and cant reason why this happens?!?
>>> y= "yeh im gonna lose my mind over this"
>>> if "screen" or "display" or "crack" or "smash" in y:
... print ("Y does this happen?")
...
Y does this happen? #Output
EDIT: I think this question is viable and not a duplicate as it entails the information of the ordering of the IN and OR statement in a loop whereas the previous question i believe only asked for a simple answer on IN statements.