for i in range(1, rows + 1): #specifies range to user's number of rows desired: it is the outer loop for j in range(1, i+1): #inner loop that specifies amount of numbers on each row ...