lundi 6 juillet 2020

Evaluating a multiple != if statement in python [duplicate]

elif S[i - 1:i + 2] != S[i] * 3 != S[i - 2:i + 1]: return False

How does this (if) statement in python evaluate?

Is it or or xor?

Do they all have to be equal?

Aucun commentaire:

Enregistrer un commentaire