input: from typing import List
  
  def print_pattern(rows: int) -> List[str]:
      """ Prints a pattern of numbers like this:
      1
      12
      123
      1234
      12345
      for the given number of rows.
  
      >>> print_pattern(5)
      ['1', '12', '123', '1234', '12345']
      >>> print_pattern(3)
      ['1', '12', '123']
      >>> print_pattern(1)
      ['1']
      """
output:     result = []
      for i in range(1, rows + 1):
          result.append(''.join(str(j) for j in range(1, i + 1)))
      return result