SHARE
TWEET

Untitled

a guest Oct 22nd, 2019 81 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. studenty = [{'name':'Mikołaj Matuszny', 'ocena':5.0},{'name':'Konrad Matuszny', 'ocena':2.0},{'name':'Szymek Stach', 'ocena':5.0},{'name':'Michał Matuszny', 'ocena':2.0},{'name':'Krzysiu Matuszny', 'ocena':5.0},{'name':'Adam Beruś', 'ocena':2.0}]
  2. przeszli = [i for i in studenty if i.get('ocena')>2.0]
  3. print(przeszli)
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top