board =  for i in range(5): board.append(5 * ["O"]) def print_board(board): for x in board: print x
My code is all fine so far. What I can't get my head around is how board.append(5 * ["O"]) makes 5 rows of lists in one empty list.
I thought that board.append would then have to be multiplied a further 5 times to make a grid. Please explain how I'm wrong as I'm panicking and thinking that I will just never get Python!
edit: is it kind of like board.append(5 * x) * 5?