PYTHON CORE · LESSON 18
Add to the list
Method of append · about 11 minutes
Learning with progressRead the summary for free. To save the work, log in to the account.
Type the code yourself
Dial the program. Notice the dot before append.
games = ["мяч"]
games.append("лото")
print(games)Open the editor for class workSolve it yourself
Create pets with the word «кот». Add «хомяк» through append, and then output the entire list.
The answer is hidden. Use similar examples from the lesson notes.
Opening up your homework