Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- primos = [2, 3, 5]
- # Obtención de iterador:
- iterador = iter(primos)
- print(next(iterador))
- print(next(iterador))
- print(next(iterador))
- # Se genera error:
- print(next(iterador))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement