Ответсообщение недоступно
This code is actually implemented to break after it has removed the first occurrence. That's why it exits the loop. And I don't think it's just a break that's added. Maybe something else that terminates any other loop it's nested in cause I think the function itself is a list