Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- >>> s = 'abc'
- >>> it = iter(s)
- >>> it
- <iterator object at 0x00A1DB50>
- >>> it.next()
- 'a'
- >>> it.next()
- 'b'
- >>> it.next()
- 'c'
- >>> it.next()
- Traceback (most recent call last):
- File "<stdin>", line 1, in ?
- it.next()
- StopIteration
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement