what does the ( i) mean? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

what does the ( i) mean?

29th Sep 2017, 10:49 PM
John H Abraham
John H  Abraham - avatar
2 Answers
+ 5
if you mean something like for i in ['a', 'b', 'c']: print (i) "i" is the loop variable each iteration it takes one value of the list it's only a convention, but you can use any variable name for more info, check "for loops" section on Python tutorial
29th Sep 2017, 10:54 PM
LayB
LayB - avatar
+ 1
Thanks LayB..☺
29th Sep 2017, 11:06 PM
John H Abraham
John H  Abraham - avatar