>_BeginnerCoder
Donate

Lesson 6 — Lists

Lists of values

A list stores many values in order inside square brackets. append() adds an item to the end, and a for loop reads them one by one.

Why it matters: most real data comes in groups — fruits, users, scores — and lists keep them together so you can work through them.

Tip: list positions start at 0, so fruits[0] is the first item.

Task

Add grape to the list and print every fruit.

← Back
Next →

Enjoying this lesson? Share it 👇

Keep going with Python Foundations

Ready for more? These paid resources pick up where this lesson leaves off.

Some links on this page are affiliate links: we may earn a commission at no extra cost to you. We only recommend tools we believe are genuinely useful.