vendredi 2 décembre 2016

Simplify if statement python

Is there any pythonic or compact way to the write follwing if statement:

if head is None and tail is None:
    print("Test")

Somthing like

if (head and tail) is None: 

Aucun commentaire:

Enregistrer un commentaire