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.
Add grape to the list and print every fruit.
Ready for more? These paid resources pick up where this lesson leaves off.
Project-based Python Foundations video courses — the perfect paid next step after these free lessons.
Browse on Udemy →Hand-picked Python Foundations books to master the fundamentals offline.
See on Amazon →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.