''' Purpose: stepping stone to nested looping ''' # get i reply = input( 'Enter number: ' ) i = int( reply ) # performed the repeated printing of a number series print( i, ':', end=' ') for lv in range( 0, i + 1 ) : # 0 to i # print a line of the form i: 0 1 2 ... i (range(0, i+1)) print( lv, end=' ' ) # How can I change this??? # Remember this prints out 1 2 3 4 # to do so need to first print the row i: part # then on same line print out the values 0 1 2 ... i one after the other # for duck in range(0, 100000): # print( 'duck' )