In my intro computer science class we just finished writing a program to create a tic tac toe board and the way I made my game board was like this;
game_board = [[', ', '], [', ', '],[', ', ']]
I viewed similar problems on the internet and saw another way it was written like this
different_board = [[' '] * 3 for row in range(3)]
I was wondering how the second one would look compared to the first one if it were written out, would they be the same or would it look different?