Guest User

Untitled

a guest
Nov 15th, 2018
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.10 KB | None | 0 0
  1. y = [1, 2, 3, 4]
  2. for x in y:
  3. print(y)
  4. print(y.pop(0))
  5.  
  6. Output:
  7. [1, 2, 3, 4]
  8. 1
  9. [2, 3, 4]
  10. 2
Add Comment
Please, Sign In to add comment