text: //pattern1
  rows = 6
  for num in range(rows):
      for i in range(num):
          print(num, end=" ")  # print number
      # line after each row to display pattern correctly
      print(" ")
      
      
  //pattern2
  rows = 5
  for row in range(1, rows+1):
      for column in range(1, row + 1):
          print(column, end=' ')
      print("")
  