Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
Please use a spoiler flag when posting code, and use markdown format tags: https://docs.codewars.com/training/troubleshooting/#post-discourse
Your loop is initialized with the original length of the list, so if you change the length of your list in the meanwhile this isn't actualized (in Python) and you get an index out of range. Anyway your appoach is not good, you need to realize it. I encourage you to print stuff to the console to understand what your code does and why it fails when it does. You need to learn to debug yourself your code, that's what programming is all about.
It says consecutive numbers.
This comment is hidden because it contains spoiler information about the solution