+ 6
I see this all the time...
In python, it keeps using "for i in range" as an example. what does it mean?
3 Respostas
+ 8
It's a loop, it executes the code inside it many times, one after another, iterating "i" by items of the specified range. Exactly how many times depends on the loop statement - range(x) means x times.
+ 1
for I in range (0,10):
is same as...
for I in range (10): #by default it starts frm 0
is same as....
for (I=0; I <10; I++)
this is for loop which runs from I=0 to I=9
0
it's a repeat so meany times loop
for say u want it to print 1 ten times