+ 1

Can someone please explain this short snippet of python?

Okay so this code was in part of a “Fill in the blank” lesson in python. And I’m confused to as if this would even work? https://code.sololearn.com/cLDCeIiga6dm/?ref=app letters = ['a', 'b', 'c'] for I in letters: print(I)

26th Jul 2018, 8:07 PM
Chance
2 Antworten
+ 3
if you put a tab char just before 'print', the code will run and you will understand 😉
26th Jul 2018, 8:13 PM
KrOW
KrOW - avatar
+ 1
ah that would make sense, thank you!
26th Jul 2018, 11:07 PM
Chance