diff options
Diffstat (limited to 'progs/a807.py')
-rw-r--r-- | progs/a807.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/progs/a807.py b/progs/a807.py new file mode 100644 index 0000000..2ee98f6 --- /dev/null +++ b/progs/a807.py @@ -0,0 +1,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))
\ No newline at end of file |