Hi, I’m having trouble with this exercise on infinite loops, particularly with dealing with the while loop.
I read the hint, which mentioned something about using .pop or .shift, but I am confused as to why this loop is infinite. I don’t understand the explanation in step 2 of this exercise. What does “removing an element” have to do with the code running succesfully? I am very confused and have little idea of what this exercise is telling me.
Thank you for any help!