0
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?

deceze
  • 491,798
  • 79
  • 706
  • 853
Trajan
  • 1,240
  • 5
  • 18
  • 40

0 Answers0