PYTHON CORE · LESSON 31
Is there an element?
Testing in · about 10 minutes
Learning with progressRead the summary for free. To save the work, log in to the account.
Type the code yourself
Reprint the word check on the list.
pets = ["кот", "пёс"]
print("кот" in pets)Open the editor for class workSolve it yourself
Create pets from «кот», «пёс», «хомяк». Is there a «хомяк» in pets?
The answer is hidden. Use similar examples from the lesson notes.
Opening up your homework