# Write a Python program to How to get unique elements in nested tuple # Python3 code to demonstrate working of# Unique elements in nested tuple# Using nested loop + set()  # initialize listtest_list = [(3, 4, 5), (4, 5, 7), (1, 4)]  # printing original list print("The original list : " + str(test_list))  # Unique elements in nested tuple# Using nested loop + set()res = []temp = set()for inner in test_list:        for ele in inner:            if not ele in temp:                temp.add(ele)                res.append(ele)  # printing resultprint("Unique elements in nested tuples are : " + str(res))