Welcome to the Treehouse Community
Looking to learn something new?
Pratham Patel4,976 Points
Can i get some help on this code challenge
It says i am trying to convert an int to a str
def loopy(items): # Code goes here for item in items: if item.index(0) == 'a': continue else: print(item.index(0))
Chris FreemanTreehouse Moderator 67,989 Points
You are very close!
- Reference the 0th item using square brackets:
if item == 'a':
itemnot just the first character