Advertisement
flwkjlwekjfs

Untitled

Jul 8th, 2018
129
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. # pseudocode
  2.  
  3. a = [ { "id": 1, "score":200 }, { "id": 2, "score":300 }, { "id":3, "score":400 } ]
  4.  
  5. b = [ { "id": 1, "newscore":500 }, { "id": 2, "newscore":600 } ]
  6.  
  7. for update in b:
  8. a['score'] == update['newscore'] where a['id'] = update['id']
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement