Vladimir

6%
Flag icon
The list type is flexible and easy to use, but depending on specific requirements, there are better options. For example, an array saves a lot of memory when you need to handle millions of floating-point values. On the other hand, if you are constantly adding and removing items from opposite ends of a list, it’s good to know that a deque (double-ended queue) is a more efficient FIFO14 data structure.
Fluent Python: Clear, Concise, and Effective Programming
Rate this book
Clear rating
Open Preview