How can I assign this function to a variable and use it more than one time without getting nothing at the second time?

Viewed 17

I don't know what is wrong here: why I can't assign it and use it more than one time:

def display_game(board):
    print('Current board: ')`    print('\n')
    print(board[7],'|',board[8],'|',board[9])
    print('----------')
    print(board[4],'|',board[5],'|',board[6])
    print('----------')
    print(board[1],'|',board[2],'|',board[3])

board = ['','1','2','3','4','5','6','7','8','9']
game_board = display_game(board)
0 Answers
Related