I'm importing regex for a word count in a string, and I'm trying to use the ^ operator. Although, the compiler is recognizing the ^ as part of regex, and not the exclusive or operator. This is my code:
import re as regex count = len(regex.findall(r'\w+', question)) if count < 3: magicball.say("No Spam Allowed!!") elif "will" in question ^ "can" in question ^ "did" in question ^ "is" in question ^ "do" in question ^ "are" in question ^ "has" in question ^ "does" in question ^ "is" in question: verified = True print(oringinalquestion) The line that I'm getting the error is where it says elif. Basically, is there a way to tell the compiler that I want to use the exclusive or operator? Thanks in advance!