Remove even nums, need little help

In that exercise, can somebody please explain why lst = lst[1:] eventually give us 11 as the first number in a string, and not a 1st-index number, i.e. 8? (Take a look at the first print)

it does, after the first iteration of the loop.

But then the loop runs again, and will keep removing the first element (by copying the rest of the list) until the first number is odd (or there is nothing left in the list)

1 Like