input: Write a function to print the following output pattern using Python. The function should take an integer `n` as input and print the pattern for the range `1` to `n`.
  
  def print_pattern(n):
      for i in range(1, n+1):
          for j in range(1, i+1):
              print(j, end="")
          print()
  
  assert print_pattern(5)==None
  assert print_pattern(3)==None
  assert print_pattern(1)==None
output: def print_pattern(n):
      for i in range(1, n+1):
          for j in range(1, i+1):
              print(j, end="")
          print()