Well, it's pretty but not... right?


#1



I keep getting told that my response is incorrect, but it seems fine to me.
I get the response of
OOOOO
OOOOO
OOOOO
OOOOO
OOOOO
None


For whatever reason the above is considered wrong. :stuck_out_tongue:


board = []

def create_board (list):
    for item in range(5):
        list.append(["O"] * 5)
    return list
    
def print_board (list):
    for lst in list:
        print (''.join(lst))
create_board(board)
print_board(board)


#2

Your empty string in print_board must include a space, of course.

OOOOO
OOOOO
OOOOO
OOOOO
OOOOO

Do you see the difference? :wink:

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

#3

ohh, no way. Thanks a load!


#4

Glad to see that this worked out well, however, it is best not to use list as the name of a variable, since list is the name of the Python type for lists. Using list as the name of a variable can easily lead to a buggy program.


#5