Person Info¶
Get the starter code to run. You should see:
The person's name is Johnny Smitherson.
They are ?? years old.
Their hair is ????.
What you should do¶
What happens when you change the single quotes in the f-string to double quotes? i.e.,
{person["name"]}. Why might this be the case? Respond in a comment above that line.Show the
ageandhair_colorfrom the dictionary as well.Add into the dictionary information about this person’s
"favourite_food". You may set the value to anything. Show this in the output as well.
©2021 Daniel Gallo
This assignment is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 3.0 United States License.
