Ad
  • Default User Avatar

    modulo operation correct?
    If what you mean is how it works, in here it prevents Index out of range by taking the leftover of a division.
    So by having the length of the original list when the number goes higher it instead loops arround to 0 every multiple of it.