input: Write a function to print the following output pattern of numbers based on the range 1 to 5. Each line should print numbers from 1 to the current line number.
  print_pattern()
  
  assert print_pattern()==None  #The function does not return anything but prints the pattern
  # Expected output:
  # 1
  # 12
  # 123
  # 1234
  # 12345
output: def print_pattern():
      for i in range(1, 6):
          print(''.join(str(j) for j in range(1, i + 1)))