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