Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python create nested dictionary

people = {1: {'name': 'John', 'age': '27', 'sex': 'Male'},
          2: {'name': 'Marie', 'age': '22', 'sex': 'Female'}}

print(people)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #python #create #nested #dictionary
ADD COMMENT
Topic
Name
5+1 =