in this case what does range(5) refer to? i understand that there are 5 spaces and a set of 5 [“O”] are being appended to each space. but from where do i get this 5 spaces???


well either way this is the first time i discovered you can use “for” in this scenario (together with range() )


range(5) produces a list:

print range(5)

it basically allows us to run a loop 5 times.


This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.