wow = ["wowza this is a really long string wows"]
if "long" or "is" in wow:
print("yes")
output is yes
however if I put in
wow = ["wowza this is a really long string wows"]
if "long" in wow:
print("yes")
output is nothing
same with:
wow = ["wowza this is a really long string wows"]
if "is" in wow:
print("yes")
why?
I thought or
was supposed to be either one?
but if individually inputed both are false but with or
it becomes true?
or that's the wrong way to write an if or statement?
should it be written like this?
if "long" in wow or "is" in wow: