what is a List in Python?
About this video
A beginner lesson introducing the Python list as a better way to store many related values than cramming them into one large string. Using a camping-trip example, Chuck first builds a single bloated string of supplies, then replaces it with a camping_list written with square brackets and comma-separated items, holding 10 individual pieces of data in one variable. A definition is given: a list is an ordered and changeable collection that, unlike an array, can mix object types. He proves this with a camp_site list combining a string (‘Crystal Lake’), an integer (404), a float (89.3), and a boolean (True), and uses print with type to show the variable’s class is list. The main focus is ordering and indexing: because computers count from zero, the fifth item, coffee, sits at index 4, and marshmallows, the tenth item, sits at index 9, letting him pull single items into new variables by referencing camping_list with a bracketed index. He also introduces negative indexing, where -1 returns the last item and -2 the second-to-last, which is useful when you do not know a list’s length.
Key takeaways
- A list stores many individual items in one variable using square brackets and commas, instead of one unwieldy string
- Lists are ordered and changeable, and can mix data types such as strings, integers, floats, and booleans
- Items are accessed by index, and indexing starts at zero, so the fifth item is at index 4
- Negative indexes count from the end: -1 is the last item and -2 is the second-to-last
- Printing a whole list shows its contents, and the type function confirms a variable is a list
Episode details: published April 15, 2022 · 13:14 long. Summary written by Self Growth Videos from the episode itself. Business results and any income figures mentioned are NetworkChuck’s own claims, shared for education — they are not typical or guaranteed.
← Previous: BASH scripting will change your life · Next: we’re out of IP Addresses….but this saved us (Private IP Addresses) →
All NetworkChuck videos · NetworkChuck profile · NetworkChuck on YouTube





