0
What is i in range
I don't know but would like to
2 Respostas
+ 3
i is just a variable.
range is an object that delivers a range of numbers, for example range(10) -> 0123456789.
for i in range(10)
now just means:
with i=0 # code here
with i=1...
with i=2...
with i=3...
...
up to the end of the range.
+ 2
any variable name will do. It doesn't have to be i