A for loop in python makes each element in the list accessible through the loop variable. But each iteration, only the current value is available. What if you need to combine the current value with the previous or next value? In this video, you learn how to create a generator function that loops over a list and gives you the previous, current and next value each iteration.