MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/PythonLearning/comments/1msspug/whats_wrong/n96ntku/?context=3
r/PythonLearning • u/Nearby_Tear_2304 • Aug 17 '25
45 comments sorted by
View all comments
42
Your print statement says n, not i.
11 u/therouterguy Aug 17 '25 But also a you can also just do for i in list: print(i) 0 u/[deleted] Aug 17 '25 [deleted] 2 u/willis81808 Aug 19 '25 There's alwaysfor index, value in enumerate(l): print(index, value)Best of both worlds
11
But also a you can also just do for i in list: print(i)
0 u/[deleted] Aug 17 '25 [deleted] 2 u/willis81808 Aug 19 '25 There's alwaysfor index, value in enumerate(l): print(index, value)Best of both worlds
0
[deleted]
2 u/willis81808 Aug 19 '25 There's alwaysfor index, value in enumerate(l): print(index, value)Best of both worlds
2
There's always
for index, value in enumerate(l): print(index, value)
Best of both worlds
42
u/Grounds4TheSubstain Aug 17 '25
Your print statement says n, not i.