Let's say I have a list in python [1, 2, 3, 4, 5, 6, 7, 8, 9]
I'm curious what might be considered the most "pythonic" way to iterate over this list 5 items at a time so the results are:
[1, 2, 3, 4, 5]
[2, 3, 4, 5, 6]
[3, 4, 5, 6, 7]
[4, 5, 6, 7, 8]
[5, 6, 7, 8, 9]