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
548k questions
547k answers
4 comments
86.3k users