Vladimir

7%
Flag icon
The .append and .pop methods make a list usable as a stack or a queue (if you use .append and .pop(0), you get FIFO behavior). But inserting and removing from the head of a list (the 0-index end) is costly because the entire list must be shifted in memory.
Fluent Python: Clear, Concise, and Effective Programming
Rate this book
Clear rating
Open Preview