print all unique values in a dictionary

Solutions on MaxInterview for print all unique values in a dictionary by the best coders in the world

showing results for - "print all unique values in a dictionary"
Lukas
02 Jan 2017
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
queries leading to this page
python only unieq numers in dictnarythe keys in a dictionary are uniquedistinct dictionary by value pyhtonpython unique value sin dictdictionary unique valuespython program to print all unique values in a dictionaryget every distinct pair in pythondefining unique values in python dictionaryhow to make a dictionary with some distinct keys and valuesprint all unique values in a dictionary get all unique values from a dictionary using value pythonto print all unique values in a dictionary how to add set of unique values in dictionary pythonget all values from dictionary unicue pythonwrite a python program to print all unique values in a dictionary unique get all dict values python print distinct valuespython unique values in dictionarypython unique value in dict get dictionary of unique values pythonget all unique dict values unique values from a dictionary in pythonhow to find unique elements in list of dictionary pythonprint unique values in dictionary pythonhow to make set of unique elements from dict in pythonhow to store unique values in python dictget unique element from a dictionary pythonget unique value from 2 dict keys in pythonget list of unique values of a dictionary pythononly keep unique values in dict pythonhow to get distinct dict property values in pythoncompute unique values python using dictionarywrite a program to print all the unique values in the dictionary get all unique keys from dictionary pythonunique values in a dictinarypython use dictionary to find unique valuesget unique values from list of dictionary pythonprint unique valuesget unique values from dictionary pythonreturn unique elements in list python to dictionaryfunction to print all the unique values in an array in pythonwrite a python program to print all unique values in a dictionarypass all dict values to unique stringpython dict only unique valueshow to get distinct data of keys and values in dictionary pythonhow to get only unique items from list dictionaryget all unique value for dict key pythonhow to find unique values in a list of dictionary pythonget unique values from dictionary in pythonpython create dictionary from list with unique elementshow to get values in dictionary python uniqueget unique dictionary valuesget unique values dictionary pythonmap all unique values to their keys pythonprint only unique values in dictionary pythonprint all the unique values in a list pythonget all unique values pythonfind unique values in dictionary pythondictionary get unique values python print all unique values in a dictionaryfind all unique items in dictionary value pythonprint all unique values in a dictionary