Advertisement
Guest User

Untitled

a guest
Jul 25th, 2014
203
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.19 KB | None | 0 0
  1. y = []
  2. for z in ('a', 'bnc', 'd'):
  3. y.extend(z.splitlines())
  4.  
  5. y = []
  6. y.extend(z.splitlines() for z in ('a', 'bnc', 'd'))
  7.  
  8. y.extend(v for z in ('a', 'bnc', 'd') for v in z.splitlines())
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement