Answer the question
In order to leave comments, you need to log in
What is the 'or' operator for the string data type called in Python?
I can't find anything anywhere.
For example, I want to do this:
while a != 'next' or 'stop': blah blah blah...
But 'or' is only for the bool data type. Is there an 'or' operator for the string data type?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question