import string for name in ["lloyd", "alice", "tyler"]: name = {"name": string.capitalize(name), "homework": [], "quizzes": [], "tests": []}