Hi everyone, in this video I'm going to talk about what's going on under the hood of Python lists, where they work well, and where they don't.
Lists are a very popular data structure, but not everyone understands how they're implemented under the hood, and the consequences of thoughtless list expansion and iteration. We'll benchmark the performance of various operations, including accessing elements, adding elements, iteration, and creating a list from a range.
If you enjoy these types of discussions, subscribe to the Python Clinic channel here and on Telegram
https://t.me/PythonClinicChnl
Timecodes:
00:00 - Intro
00:13 - List as a data structure
03:53 - Accessing elements and expansion
06:46 - Iteration
10:22 - Creating lists