The anwser for set is

string1 = 'Hello world' list1 = [1,2,3,3,2,1,3,5,7,8,9,6,8]
set1 = {1,2,3,4}
list2 = list(set(list1))
print('The value of list after removing duplicates')
print(list2)
#print(set1[3])
#print(set1[1:3])
tup1 = list1
set2 = tup1
print('Conversion of list to tuples and tuples to set')
print(set2)
tup2 = tuple(set2)
list3 = list(tup2)
print('Conversion of sets to tuples and tuples to list')
print(list3)
tup3 = tuple(string1)
set3 = set(tup3)
str1 = ''.join(set3)
print('Conversion of string to tuples and set and reverse them back to string')
print(str1)