Hello, world
Im trying to create a mechanism to check if an input string contains only the few allowed characters, something like
for i in string:
if i != "a" or "b" or "c"
print "invalid character"
All I got was the output invalid character no matter what the input was. Does anyone know why?
Thanks!