Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

how to use multiple keys for single value in dictionary python

#Python Dictionary only contain one key : one value pair.
#You can surely have multiple keys having same value
#Example :-
  dict = {'a':'value1', 'b':'value2', 'c':'value 3'}
#In above we have a and b key having same values
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #multiple #keys #single #dictionary #python
ADD COMMENT
Topic
Name
5+7 =