Bug Hunt · difficulty 2 of 3
Bug: off the end 🐛
It should print each pair of neighbouring items, but crashes with IndexError. Fix the loop.
This one is part of Pro. Plenty of arcade challenges are free to play right now.
Skills: functions, exceptions