Testing Yourself With a Challenge
Then enter the following data into the dictionary, one item at a time. The data is
"Sisko". All of these are strings, so don’t forget the quotation marks at the beginning and end of them.
Next, I want you to write a
for loop to display the ship and captain names contained in the dictionary. So for example, you could print a string,
"The Enterprise is captained by Picard". And finally, delete the key
"Discovery" from the dictionary.
01:13 If you’re unsure about how to solve some steps of this challenge, you can revisit some lessons of this video course. I would recommend try solving it first on your own, but if you don’t know how to solve it after trying things, just ask in the comments below, and the community will help you out.
Become a Member to join the conversation.