# a is defined list a = [1,2,3,'seeker',3,7.5] # Using dict.fromkeys() method x = list(dict.fromkeys(a)) converted_set = set(x) print(converted_set)