PYTHON CORE · LESSON 10
Mini-project
List and loop together · about 15 minutes
Learning with progressRead the summary for free. To save the work, log in to the account.
Type the code yourself
Dial a small program from the sample. Find the list, loop and connection of lines.
pets = ["кот", "пёс"]
for pet in pets:
print("Это " + pet)Open the editor for class workSolve it yourself
Create fruits with «яблоко», «груша», «банан». Loop through the list with for and a variable named fruit. Print «Фрукт: » and each fruit's name.
The answer is hidden. Use similar examples from the lesson notes.
Opening up your homework