All lessons

Lists

7 min · Python

Hold many values under one name, and reach for the one you want.

Python · Lists0/5 cleared

Enemy 1 of 5

A list holds several values in order, inside square brackets, separated by commas. One name, many values.

Run this to make a list of fruits and print the whole thing.

You
Syntax Skeleton

Loading editor...

Ln 1, Col 1Spaces: 4
Sign up to fightTarget output: ['apple', 'banana', 'cherry']