3

Popping off more than one item at a time in a list

view full story
linux-howto

http://www.linuxquestions.org – Hello, I'm a new Python learner, and I was reading some code the other day and thought that I saw they were using the list.pop method to pop of more than one item at a time. Something like this. Code: l = [ 'a', 'b', 'c', 'd', 'e' ] l.pop(0:3) ['a','b','c'] l ['d','e'] But of course when I looked at invoking the method, it only works for one item at a time. I'm working on a data structure where I'm parcing weather data that is 15 items long that are return in as data in a list that has 3,000 + items. I was wanting to pop o (HowTos)