Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

how to create multiple dictionaries in python

import string
for name in ["lloyd", "alice", "tyler"]:
    name = {"name": string.capitalize(name), "homework": [], "quizzes": [], "tests": []}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #create #multiple #dictionaries #python
ADD COMMENT
Topic
Name
1+4 =