Filter Saved Starship Names (Exercise)
00:00
This exercise is only a slight variation of the previous one, so you can reuse bits of code that you might already have. Here you’ll read the same text file again, but you’ll only print the starship names that start with the uppercase letter D
.
00:15 You don’t need to worry about error checking, so assume that the file already exists and contains starship names that start with uppercase letters.
Become a Member to join the conversation.