Guest User

Untitled

a guest
Jul 17th, 2018
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.22 KB | None | 0 0
  1. spam = [(1, 2), (1, 3), (2, 5), (5, 4), (1, 4)]
  2.  
  3. spam = [(2, 5), (5, 4)]
  4.  
  5. for item in spam:
  6. if item[0] == 1:
  7. spam.remove(item)
  8.  
  9. eggs = []
  10. for item in spam:
  11. if item[0] != 1:
  12. eggs.append(item)
Add Comment
Please, Sign In to add comment