summaryrefslogtreecommitdiff
path: root/progs/a190.py
blob: ab9ad5961e30fdc6098eb3e3799ef396581a1ea8 (plain)
1
2
3
4
5
6
def remove_nested(test_tup):
  res = tuple()
  for count, ele in enumerate(test_tup):
    if not isinstance(ele, tuple):
      res = res + (ele, )
  return (res)