vendredi 19 février 2021

Condition Weird Behavior

We get the validity parameter as False and we use if condition as follow:

if not validity:
    // logic

Why python3 is satisfying this condition? not sure about python2.

Does anyone know about this weird behavior?

Aucun commentaire:

Enregistrer un commentaire