vendredi 5 janvier 2018

Is there a way for python to check multiple values? [duplicate]

This question already has an answer here:

Is there a way for python to check multiple values for "not equals to"? Like:

if len(dict) != 2 or 4 or 8 or 16 or 32:
    do_something()

Aucun commentaire:

Enregistrer un commentaire