Write a function that takes a tuple tpl
and an integer n
and returns another tuple where nth element of tpl
is removed. Note that original tuple should not be changed.
tuple_remove((100, 200, 300, 400, 500), 3) -> (100, 200, 300, 500)
tuple_remove(('Dave', True, 3.5, 1, 'Sarah', 3), 1) -> ('Dave', 3.5, 1, 'Sarah', 3)