You have a short list of famous cats. You need to find the index when the word cat occurs in their names. The code is written, but the lines are mixed up. Put the lines of code in the correct order and don't forget about the indentation.
find() under the hood
Find a cat
Report a typo
Reorder lines using drag or arrows. Adjust indentation with left buttons
cats = ["the chesire cat", "simon's cat", "felix the cat"]
for cat in cats:
print(index)
index = cat.find('cat')
___
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.
Create a free account to access the full topic
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.