3 ms·
But you want array[len(array)] to throw an error rather than return array[0], so modulo isn't the right operator.
by tlb 8y ago
But you want array[len(array)] to throw an error rather than return array[0], so modulo isn't the right operator.
3 ms·