Advertisement
Guest User

Untitled

a guest
Oct 21st, 2014
131
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.19 KB | None | 0 0
  1. x = [3, 4, 6, 8, 9, 10, 13, 14]
  2. z1 = [0, 5, 7]
  3. z2 = [1, 2, 6]
  4.  
  5. y = []
  6. for i not in z1:
  7. y.append(x[i])
  8.  
  9. # Now I need to update the values of z2 ...
  10.  
  11. >> y
  12. [4, 6, 8, 9, 13]
  13. >> z2
  14. [0, 1, 4]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement