input: Write a function to implement a function f() in Python that takes an argument n and prints the multiplication table of n. If the argument n is not an integer or if it is less than or equal to 0, the function should print an error message "Invalid input".
  assert f(3)
  """
  3 * 1 = 3
  3 * 2 = 6
  3 * 3 = 9
  3 * 4 = 12
  3 * 5 = 15
  3 * 6 = 18
  3 * 7 = 21
  3 * 8 = 24
  3 * 9 = 27
  3 * 10 = 30
  """
  assert f(-1)
  """
  Invalid input
  """
  assert f("a")
  """
  Invalid input
  """
  assert f(0)
  """
  Invalid input
  """
output: def f(n):
      if not isinstance(n, int) or n <= 0:
          print("Invalid input")
      else:
          for i in range(1, 11):
              print(f"{n} * {i} = {n * i}")