Arrays/Lists

Ordered collections for indexed access.

Lesson 1

Concept

Use lists for ordered data and iteration. Watch out for out-of-bounds and mutation while iterating. Prefer constant-time push/pop at the end when available.

Try it

Concept Check

Accessing an index beyond length typically results in…