jeudi 29 octobre 2015

Will this method be ran in my 'if' statement? [duplicate]

This question already has an answer here:

I am wondering what the order of operations is in my if statement.

if not myBool and myFunc():
    # do something
    pass

in the above code, if the myBool variable is true, will the if statement stop there and not run the myFunc() function or will both of them be checked/ran irregardless?

ANSWER: the function will not be ran

Aucun commentaire:

Enregistrer un commentaire