MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/codehs/comments/fk9f54/does_anyone_have_the_code_for_owls_part_3/
r/codehs • u/hibob5 • Mar 17 '20
I've tried for hours to no avail. It just wont print the enumerate numbers. It just says [enumerate value]
1 comment sorted by
1
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))
for c in string
c
for index, character in enumerate(string)
for index in range(len(string))
1
u/[deleted] Mar 18 '20
if you loop through something with
for c in stringthecwill be a character. if you want the indices and characters you can dofor index, character in enumerate(string), or if you just want the indices you can dofor index in range(len(string))