A
A
Aeolloups2022-04-21 18:23:30
Python
Aeolloups, 2022-04-21 18:23:30

Why is the code not displayed in the console?

board = range(1,10)

def draw_board(board):
    print ("-------------")
    for i in range(3):
        print ("|", board[0+i*3], "|", board[1+i*3], "|", board[2+i*3], "|")
        print ("-------------")

Answer the question

In order to leave comments, you need to log in

2 answer(s)
P
paran0id, 2022-04-21
@Aeolloups

Is this all code? draw_board function not being called anywhere

O
Oleg Chekunov, 2022-04-23
@Fnali

call the function draw_board(board)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question