Answer to Question #195389 in Python for reeeg

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


1
Expert's answer
2021-05-20T00:29:15-0400
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

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS