socek

Untitled

Apr 22nd, 2016
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.14 KB | None | 0 0
  1. mojalista = [('first', 'second'), ('third', 'fourth')]
  2. pierwsze_elementy = [ obj[0] for obj in mojalista ]
  3. pierwsze_elementy == ['first', 'third']
Advertisement
Add Comment
Please, Sign In to add comment