""" Purpose: stepping stone to nested looping """ # get n reply = input( "Enter number of columns: " ) n = int( reply ) # performed repeated printing of a number series # print a line of the form row : 0 1 2 ... n-1 # to do so need to first print the row : part print( "row :" , end=" " ) # separate things by a space # same as print( "row : " , end="" ) # then on same line print out the values 0 1 2 ... n-1 one after the other for c in range( 0,n ): print( c, end=" " ) print() # this is the print statement that gets us to a new line because there is no end= # when there is no end value specified, python will default to new line "\n" print( "\n\n\n\n\n" ) print( "are we on a new line yet?" )