Home › Course contents › Level 3 - New Members
append and len
Level 3 - New Members
Chapter 2 · Monster League
team.append(...) adds a new member to the end of the list; len(team) counts how many are in it:
team = ["{PET}"]
team.append("Reefclaw")
print(len(team)) # 2GoalAdd "Boulshell" and "Blazursa" too, then say how many members the team has.
TipEach append adds one member.
Starting code
team = ["{PET}", "Reefclaw"]
# Use append to add "Boulshell" and "Blazursa"
# Say how many members the team has