Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from itertools import islice, cycle
- fizzy = ['', '', 'fizz']
- buzzy = ['', '', '', '', 'buzz']
- # yo yo
- fizz_buzz = list(filter(lambda x: x, map(lambda a: a[0] + a[1], islice(zip(cycle(fizzy), cycle(buzzy)), 100))))
Add Comment
Please, Sign In to add comment