ShriRam Changed status to publish August 18, 2023
import itertools
num=[[10,20],[40],[30,56,25],[10,20],[33],[40]]
print(“Original List= “,num)
num.sort()
new_num=list(num for num,_ in itertools.groupby(num))
print(“New List”,new_num)
ShriRam Changed status to publish August 18, 2023