YOUR SAVED CODE-ALONG
Code along: Create Python lists
Keep the lesson open on your other screen. Your edits stay in this workspace, separate from the practice activity. Sign in to save and reload a private account draft across devices, or share a snapshot when you need help.
CODE-ALONG / THEATER MODE
Create Python lists
ORIGINAL WALKTHROUGH · 6:57
Watch with Rob.
Pause whenever you want to try a change. You can return to the lesson at any time.
You are signed in, but video access needs attention. Check your account access. Your saved work is kept.
Video walkthroughs are included with an active Code Zone membership. The written lesson and practice are free.
Video settings & progress
Your lesson progress
Empty: not started. Yellow: in progress. Green: complete. Marking the whole activity complete does not replace your test results. These circles save in this browser for this pilot.
Start the video to enable typing controls.
YOUR TURN
Code along: Create Python lists
Create string, numeric and mixed lists. Combine two lists into a new list and compare the originals. Use len to count items; try an empty list. Pause the original recording to type and run your examples. This open workspace saves separately from scored practice and has no fixed-answer checks.
Load an example, edit it and run it. Word wrap is enabled.
Your check results
Lesson reference
Examples load into this same code-along only after you confirm replacing your code.
Square brackets create a list
Put comma-separated values inside square brackets. Strings still need quotes; numbers and Boolean values keep their normal Python spelling. Empty brackets create an empty list.
A list preserves item order and allows duplicate values. It can hold mixed types, although keeping related values together often makes later code simpler.
fruits = ["apple", "banana", "cherry"]
numbers = [1, 2, 3]
mixed = ["Ada", 42, True]
print(fruits)
print(len(mixed)) # 3
print([])Combine lists without changing the originals
The + operator produces a new list with the left list’s items followed by the right list’s items. It does not add the numbers inside those lists.
The original lists remain unchanged. This distinction matters when you want a combined roster and still need each team.
first_team = ["Ada", "Rob"]
second_team = ["Grace"]
roster = first_team + second_team
print(roster)
print(first_team)
print(len(roster)) # 3Count items, not characters
len(fruits) returns the number of items. A long fruit name still occupies one list position. An empty list has length zero.
The next practice adapts the source’s create/combine/count exercises to fixed inputs so the checks can give predictable feedback. After passing, try your own animals, foods or numbers.
Build it one step at a time
Prefer learning by typing? Work through short instructions, run the Python code and check each change before continuing. Your guided project saves separately from the challenge below.
The mini-lesson opens in a new tab. Your own code carries forward; each step has a focused check and an optional hint.
Start mini-lesson(opens in a new tab)4 steps · Saved work · Instant feedback
See the attached lesson’s comic
