input: def print_pattern() -> str:
      """
      Write a code in Python to print the following pattern:
      *
      **
      ***
      ****
      *****
      ****
      ***
      **
      *
      """
      for i in range(5):
          for j in range(i+1):
              print("*", end="")
          print("")
      for i in range(5, 0, -1):
          for j in range(i):
              print("*", end="")
          print("")
  
  # Example Output:
  # *
  # **
  # ***
  # ****
  # *****
  # ****
  # ***
  # **
  # *
output:     for i in range(4, 0, -1):
          for j in range(i):
              print("*", end="")
          print("")