+ 6

I see this all the time...

In python, it keeps using "for i in range" as an example. what does it mean?

11th Mar 2017, 7:38 PM
Uziel ;) :) :p
Uziel ;) :) :p - avatar
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.
11th Mar 2017, 8:12 PM
Kuba Siekierzyński
Kuba Siekierzyński - avatar
+ 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
12th Mar 2017, 1:47 AM
Raj Kumar Chauhan
Raj Kumar Chauhan - avatar
0
it's a repeat so meany times loop for say u want it to print 1 ten times
12th Mar 2017, 1:10 AM
Riley Laher
Riley Laher - avatar