Code Monsters Academy
Home › Course contents › Level 1 - Team Roster
Lists

Level 1 - Team Roster

Chapter 2 · Monster League

A list is like a roster: square brackets [ ] hold many things together, separated by commas:

team = ["{PET}", "Lilywhisp"]
print(team)
GoalMake a list with 3 members: {PET}, Lilywhisp, Dunebun.
TipPut quotes around every name, and separate the names with commas.
Starting code
# Make a list called team with 3 names: "{PET}", "Lilywhisp", "Dunebun"

# Then check it with print(team)
Practise this in the game
← Previous levelLevel 12: Graduation BattleNext level →Level 2 - Which Member?