1L = [{"V":"S001"}, {"V": "S002"}, {"VI": "S001"}, {"VI": "S005"}, {"VII":"S005"}, {"V":"S009"},{"VIII":"S007"}]
2print("Original List: ",L)
3u_value = set( val for dic in L for val in dic.values())
4print("Unique Values: ",u_value)
1dict = {'511':'Vishnu','512':'Vishnu','513':'Ram','514':'Ram','515':'sita'}
2list =[] # create empty list
3for val in dict.values():
4 if val in list:
5 continue
6 else:
7 list.append(val)
8
9print list