Can you make multiple “if” conditions in Python? [duplicate]

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

Leave a Comment