''' Purpose: stepping stone to nested looping ''' # get number of rows and columns reply = input( 'Number of rows and columns: ' ) srows, scols = reply.split() nrows = int( srows ) ncols = int( scols ) # produce nrows rows of output # for each row produce ncols columns of output # row r's c-th output, is value of r + c for r in ... for c in ... # determine cell value for column c cell = ... # print cell value print( cell, end="\t" ) ...