Technicolor Interview Question

In a list containing duplicate values, how to remove the duplicates

Interview Answer

Anonymous

Nov 15, 2019

listOfNum= [1,1,2,2,3,1,4,3,5,4,5,7] uniqNum = set(listOfNum) uniqNum holds the set of unique numbers