Guest User

Untitled

a guest
Jun 23rd, 2018
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.21 KB | None | 0 0
  1. from itertools import islice, cycle
  2. fizzy = ['', '', 'fizz']
  3. buzzy = ['', '', '', '', 'buzz']
  4. # yo yo
  5. 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