← Back to All Lessons

Working with Lists

ProgressStep 1 of 5

Step 1: What is a List?

A list is a way to store multiple values in one variable. Instead of: sale1 = 1200 sale2 = 1500 sale3 = 1800 You can use: sales = [1200, 1500, 1800] Lists use square brackets [] and commas to separate values.
Code Editor
Initializing editor...
💻 Output:
Click 'Run Code' to see output here...