input: Write a function to print the following pattern: five rows of asterisks starting from one and increasing to five, followed by five rows of asterisks starting from five and decreasing to one. If the input is an integer greater than zero, adjust the pattern accordingly. If the input is zero or a negative integer, output an empty string.
  
  def print_pattern(n):
      if n <= 0:
          return ""
      for i in range(n):
          for j in range(i+1):
              print("*", end="")
          print("")
      for i in range(n, 0, -1):
          for j in range(i):
              print("*", end="")
          print("")
  
  assert print_pattern(0)==""
  assert print_pattern(-1)==""
  assert print_pattern(5)
  assert print_pattern(3)
output: def print_pattern(n):
      if n <= 0:
          return ""
      for i in range(n):
          for j in range(i+1):
              print("*", end="")
          print("")
      for i in range(n, 0, -1):
          for j in range(i):
              print("*", end="")
          print("")