How does python knows i want \n


i have learn c before
when i coded this code all was seen well, but i didn't understand how does the system knows to do \n (to go down to another row)

Replace this line with your code. board=[]

for i in range(0,5):
def print_board(board):
    for i in board:
            print " ".join(i)
print print_board(board)


you don't use \n?

each print statement prints on a new line by default, even when print statement is in loop


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