0
for i in range(5): print("hello!"), output is that 5 times hello is printed, but what "i" is doing in the whole code??
3 ответов
0
It's how for loops work. You get an iterable object, and a variable: i. i will represent that value. If you would do print(i), the output would be 0, 1, 2, 3, 4
0
What do u mean by iterable object here ?
0
Am object you can iterate through. An array, a tuple, list, and so on