Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/env python
- from itertools import *
- print 'Doubles:'
- for i in imap(lambda x: 2 * x, xrange(5)):
- print i
- print 'Multiples:'
- for i in imap(lambda x, y: (x, y, x * y), xrange(5), xrange(5, 10)):
- print '%d * %d = %d' % i
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement