It's a FreeCodeCamp bug

I wrote my code correctly for lesson 29, which says you should declare a variable called new_index inside your for loop. I wrote the code correctly, but it wouldn’t let me continue.

Welcome to the forum @elvsda1

If you have a question about a specific challenge as it relates to your written code for that challenge and need some help, click the Help button located on the challenge.

The Help button will create a new topic with all code you have written and include a link to the challenge also. You will still be able to ask any questions in the post before submitting it to the forum.

Happy coding