Guest User

Untitled

a guest
Mar 15th, 2012
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.14 KB | None | 0 0
  1. >>> test=[1,2,3,4,5,6]
  2. >>> testa=[3,4,5,6]
  3. >>> for i in test:
  4.     print(i)
  5.     test=[j for j in test if j not in testa]
  6.  
  7.    
  8. 1
  9. 2
  10. 3
  11. 4
  12. 5
  13. 6
  14. >>>
Advertisement
Add Comment
Please, Sign In to add comment