text: #the figure to be drawn
  # https://github.com/Varanasi-Software-Junction/pythoncodecamp/blob/ba8654ec5f4118ca6d366c4dbc478886b4c1288e/pattern/patterns/leadingdiagonal.PNG
  
  n = 7 #n=no of rows and no of columns as well
  
  for row in range(1, n + 1): # loop for rows
      for col in range(1, n + 1):# loop for columns
          condition = row + col == n + 1 # Condition for drawing 0
          if condition: #Apply the condition
              print("0", end="") # print 0 end = "" is for avoiding the newline
          else:
              print(" ", end="")
      print() # print newline after col loop finishes
  
  