← Back to Dictionaries
Question 284
Add A Field From Input
Add A Field From Input
Read a city from the input (one line, no prompt) and store it in the student record under the new key city. Then print the sentence <first name> lives in <city>. with both values read from the dict. Input: one line. Output: one line with the full stop.
Expected Output:
Giselle lives in Oshawa.= newline. The output ends with a newline — print one after the last line.
Hints2 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.