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
  • 510,633
  • 85
  • 743
  • 889
Trajan
  • 1,380
  • 6
  • 20
  • 41

0 Answers0