Question #195389

I can't run this code. Please help me correct it thenkyou! My code is too long, that's why I cut it, i can't post the whole code. When i run it, it says " EOL while scanning string literal"


def initialize_board():

  global current_player

  current_player = 'O'

  board = [["for i in range(3))] for j in range(3)]

       pos = 1

       for row in range(3):

         for clomun in range(3):

            board[row][column] = pos

            pos += 1

  board[1][1] = 'X'

  return board


Expert's answer

def initialize_board():

  global current_player

  current_player = 'O'

  board = [["for i in range(3))] for j in range(3)]

       pos = 1

       for row in range(3):

         for clomun in range(3):

            board[row][column] = pos

            pos += 1

  board[1][1] = 'X'

  return board
LATEST TUTORIALS
APPROVED BY CLIENTS