LLD - Design — Tic-Tac-Toe Game
Identify the bug in this code snippet for initializing a variable-sized board and multiple players:
def setup_game(n, players):
board = [[None]*n]*n
for p in players:
print(f"Player: {p}")
return board
setup_game(3, ['A', 'B'])