Lists
Lists are ordered collections that can hold multiple items of any type.
Creating Lists
Loading Python Playground...
Accessing Elements
Loading Python Playground...
Exercises
Loading Python Exercise...
Loading Python Exercise...
Loading Python Exercise...
Slicing Lists
Loading Python Playground...
Loading Python Exercise...
Modifying Lists
Loading Python Playground...
Loading Python Exercise...
Removing Elements
Loading Python Playground...
List Operations
Loading Python Playground...
Loading Python Exercise...
Practice Playground
Loading Python Playground...
Key Takeaways
- Lists use square brackets:
[1, 2, 3] - Index from 0 (or -1 from end)
- Slice with
[start:end:step] - Lists are mutable (can be changed)
append(),insert(),remove(),pop()modify lists+concatenates,*repeats

