Home
Press ? for keyboard navigation
❮
For-else
Exercise: Number guessing game
❯
Exercise: Print all the locations in a string
Create a file called
location_in_string.py
Given a string like "The black cat climbed the green tree.", print out the location of every "c" character.
Expected:
7 10 14
Index (i)
Table of Contents (t)
Indexed keywords (k)
Chapter TOC (d)
Hide/Show (h)