Checking if a number is not in range in Python
问题 Ok, so I have Python code at the moment which does something like this: if plug in range(1, 5): print "The number spider has disappeared down the plughole" But what I actually want to do is check if the number is not in range. I've googled and had a look at the Python docs but I can't find anything. Any ideas? Additional data: When running this code: if not plug in range(1, 5): print "The number spider has disappeared down the plughole" I get the following error: Traceback (most recent call