Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- L=(n for n in [1,2,3,4] if n%2.0==0)
- print L
- <generator object at 0x1434280>
- L.next()
- 2
- L.next()
- 4
- StopIteration Traceback (most recent call last)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement