← Back to Dictionaries
Question 261
Add An Email Key
Add An Email Key
Add a new field to the student record: the key email with the value giselle@example.com, assigned exactly like an update. Then print the email read from the dict, and on the next line the number of keys the dict now holds using len. Input: none. Output: two lines, the address then the count.
Expected Output:
giselle@example.com 5
= newline. The output ends with a newline — print one after the last line.
Hints3 available
Sign in to use hintsTopics:
Dictionaries
1
Tab to indent (Esc then Tab to move on) · Ctrl+Enter to run · Ctrl+Space to expand shortcuts (pr, inp, def)
Your Output
Run your code to see the output here...
Test Cases
Run your code to see test case results.