how to define dictionary of multiple data in python code example
Example 1: how to create multiple dictionaries in python
import string
for name in ["lloyd", "alice", "tyler"]:
name = {"name": string.capitalize(name), "homework": [], "quizzes": [], "tests": []}
Example 2: multiple values in a dictionary python
a["abc"] = [1, 2, "bob"]