the "or" clause simply takes two booleans (or expressions that evaluate to booleans) and returns another one. To use it in this case, you need two expressions that returns booleans eg. elif "camera" in problem or "....." in problem. You can't say elif "camera" or "...." in problem. Or doesn't work like that.