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
1.4m articles
1.4m replys
5 comments
57.0k users