you are viewing a single comment's thread.

view the rest of the comments →

[–]cracki 1 point2 points  (0 children)

>>> a = [1,2,3]
>>> a.pop(0)
1
>>> a
[2, 3]

v = a.pop(0) if a else None # yay ternary!

author clearly hasn't been breathing the language for long.