Programming, Coding, Python, Hashing, Software Development.
modulus operator using the array size. The result is an index where we store or retrieve the element. The modulus operator is a way of ensuring we don’t go out of bounds in the array. For example, if the array size is 10, the modulus operator ensures that the value returned falls between 0 and 9.