# Write a Python program to Remove nested records from tuple # Python3 code to demonstrate working of# Remove nested records# using isinstance() + enumerate() + loop  # initialize tupletest_tup = (1, 5, 7, (4, 6), 10)  # printing original tupleprint("The original tuple : " + str(test_tup))  # Remove nested records# using isinstance() + enumerate() + loopres = tuple()for count, ele in enumerate(test_tup):    if not isinstance(ele, tuple):        res = res + (ele, )  # printing resultprint("Elements after removal of nested records : " + str(res))