Find a cat

Report a typo

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.

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')
              
___

Create a free account to access the full topic