Printing Pretty


#1

Hey guys! So, I think I don't understand what I'm supposed to do.

I typed in the following code:

and got this error: Oops, try again. It looks like you function didn't print out the correct response!

Isn't this what I'm supposed to do? Print out the O's in a table?


#2

so apparently it was the spacing (had one too many spaces between the " "

no wonder I couldn't figure out what it was haha


#3

So this is the proper answer to the question.
Just attaching it for reference
board=[]
for i in range(0,5):
board.append(["O"] * 5)
def print_board(board):
for i in board:
print " ".join(i)
print_board(board)


#4

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.