I would like some help trying to understand the logic behind this code:
board =  for i in range(5): board.append(["O"] * 5)
When we write
range(5) this creates a list of four integers from zero to four
[0, 1, 2, 3, 4], correct?
So does that mean that the
i in the
for i in range(5) loop refers to the actual integers?
So in other words we’re saying “hey, for each item/integer in this list do the following… ?” So the integers in this list/range are irrelevant in this specific case, we’re just using them as an instrument of reference to execute something else an X amount of times?
Hope I didn’t make that too confusing lol,