Add Another Spaceship
00:00
Next, we need to add another spaceship to the dictionary. To do this, you can type the dictionary’s name, square brackets, and the ship’s name, which is Old Bessie
00:14
equals, and then as the value, the captain’s name, Lila
, to verify that this worked. I will take the print()
function call from line seven
00:27
and put it right after this new key-value pair declaration in line 12. So when you save and run the module, then you can see that Old Bessie
with the captain’s name in Lila
as part of the Captain Dictionary.
00:40 Now cool. That means we can remove the comment about adding another spaceship to the dictionary. Also, remove a few blank lines that I added here during the process, and then tackle the other tests in the upcoming lessons.
Become a Member to join the conversation.