Cool Python Trick -- Access repeating numbers
If you want to access a list of repeating numbers and the peiod is different from the array size you can avoid having to calculate for the edge case by using itertools like so:
If you want to access a list of repeating numbers and the peiod is different from the array size you can avoid having to calculate for the edge case by using itertools like so: