input: Write a function to explain the difference between a list and a tuple in Python. If the given input is a list, return "mutable" and if it is a tuple, return "immutable". If the input is neither a list nor a tuple, return "invalid".
  assert tuple_or_list(["apple", "banana", "cherry"]) == "mutable"
  assert tuple_or_list(("apple", "banana", "cherry")) == "immutable"
  assert tuple_or_list("apple") == "invalid"
  assert tuple_or_list(["apple", "banana", "cherry"], ("apple", "banana", "cherry")) == "invalid"
  assert tuple_or_list([]) == "mutable"
  assert tuple_or_list(()) == "immutable"
output: def tuple_or_list(input):
      if isinstance(input, list):
          return "mutable"
      elif isinstance(input, tuple):
          return "immutable"
      else:
          return "invalid"