Python Playground - iterator problem: Online Interpreter, Compiler & Editor | Sololearn