5. Custom Print, nothing shows up in the console


#1



https://www.codecademy.com/en/courses/python-beginner-en-4XuFm/0/5?curriculum_id=4f89dab3d788890003000096

I am able to pass the lesson, but when I submit the code nothing shows up in the console. Is that supposed to happen?


board=[]
for item in range(0,5):
    board.append(["O"]*5)
def print_board(board):
    for row in board:
        print print_board(board)


#2

You tell me. When the code above runs, how does it reach the print statement?


#3

please help~

input this:

board = []
for i in range(5):
board.append(["o"]*5)

def print_board(board):
for row in board:
print row

print_board(board)

and got this:

['o', 'o', 'o', 'o', 'o']
['o', 'o', 'o', 'o', 'o']
['o', 'o', 'o', 'o', 'o']
['o', 'o', 'o', 'o', 'o']
['o', 'o', 'o', 'o', 'o']
None

but it still tells me that" oops, try again, it looks like you function didn't print out the correct response!


#4

Try capitalizing your "o" --> "O" and checking the formatting?


#5

ty your code helped me a bit.


#6

you forgot to print row then call the function

for row in board:
   print row
        print print_board(board)

Try this


#7

write this!!!!!!!!!!!!!!!!!!!!!!!

board = []

for x in range(0, 5):
board.append(["O"] * 5)
def print_board(board):
for row in board:
print row


#8

You need to use a capital o. ("O")