human
Write a function to trim each tuple by k in the given tuple list. Here is a solution in Python: ... Write me a the Python program you requested?
assistant
#Here is the Python program you requested.
 def trim_tuple(test_list, K):
  res = []
  for ele in test_list:
    N = len(ele)
    res.append(tuple(list(ele)[K: N - K]))
  return (str(res))