๐Ÿ—‚๏ธWorking with Nested DictsWORKSHOP
2
3
4
5

Step 1

Build a student registry as a dict mapping student names to a nested dict with 'grade' (str) and 'score' (int). Add Alice (grade='A', score=95) and Bob (grade='B', score=82). Use `setdefault` to add Carol only if she doesn't already exist (grade='A', score=91). Print the registry.

Ctrl+Enter to run