SyntaxFix
Write A Post
Hire A Developer
Questions
Use the in keyword without is.
in
is
if "x" in dog: print "Yes!"
If you'd like to check for the non-existence of a character, use not in:
not in
if "x" not in dog: print "No!"