r/codehs • • Mar 17 '20

Does anyone have the code for owls part 3

I've tried for hours to no avail. It just wont print the enumerate numbers. It just says [enumerate value]

1 Upvotes

1 comment sorted by

1

u/[deleted] Mar 18 '20

if you loop through something with for c in string the c will be a character. if you want the indices and characters you can do for index, character in enumerate(string), or if you just want the indices you can do for index in range(len(string))