Python indeed allows you to do such a thing
if integer > 3 and integer < 34
Python is also smart enough to handle:
if 3 < integer < 34: # do your stuff
2.1m questions
2.1m answers
60 comments
57.0k users