mercredi 21 juillet 2021

How to check two variables in if statement python? [duplicate]

I want to check two variables or more in if state ,for example:

a=20
b=4
if a and b in range(1,7):
    print("yes")

but don't working...

Aucun commentaire:

Enregistrer un commentaire