BeginnerCoder

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.

Want it another way?
Task

Add grape to the list and print every fruit, one per line.

Run your code — when the output matches the task, you will see a green check. Then mark the lesson complete.

← Back
Next →
Test your knowledge

A quick 3-question quiz on this lesson — instant feedback.

Enjoying this lesson? Share it.