summaryrefslogtreecommitdiff
path: root/progs/a807.py
blob: 2ee98f671175eea86da4ecdfabe9caddae801ec8 (plain)
1
2
3
4
5
6
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))