0

[Solved] [Python] Problems with for loops

I tried to print all items of the lists but it outputs only part of them https://code.sololearn.com/cwJdw6LaiE3J/?ref=app

13th Dec 2022, 2:45 PM
Hecker
Hecker - avatar
2 Respuestas
+ 5
for c in interable c is the item, not the index. Try print(c) and compare
13th Dec 2022, 2:55 PM
Lisa
Lisa - avatar
+ 2
It works now. Thanks!
13th Dec 2022, 2:59 PM
Hecker
Hecker - avatar