input: Write a function to print the following pattern: a sequence of increasing number of stars for 5 lines, followed by a sequence of decreasing number of stars for 5 lines. If the input is invalid then print "Invalid Input".
  assert print_pattern(5)== "*" * 1 + "\n" + "*" * 2 + "\n" + "*" * 3 + "\n" + "*" * 4 + "\n" + "*" * 5 + "\n" + "*" * 5 + "\n" + "*" * 4 + "\n" + "*" * 3 + "\n" + "*" * 2 + "\n" + "*" * 1 + "\n"
  assert print_pattern(-1)=="Invalid Input"
  assert print_pattern(0)=="Invalid Input"
  assert print_pattern("a")=="Invalid Input"
  assert print_pattern([]) == "Invalid Input"
  assert print_pattern(None) == "Invalid Input"
output: def print_pattern(n):
      if not isinstance(n, int) or n <= 0:
          return "Invalid Input"
      result = ""
      for i in range(1, n + 1):
          result += "*" * i + "\n"
      for i in range(n, 0, -1):
          result += "*" * i + "\n"
      return result