Let's say I have a list:
n1 = [20, 21, 22, 23, 24]
and I want to iterate through the list and print the first three elements, then the next three elements of the sequence, up to the end. That is, I want this to be output:
20, 21, 22
21, 22, 23
22, 23, 24
How can I do this efficiently in Python?