Write Starship Names (Exercise)
In this exercise, you are going to save the names of starships from the popular Star Trek franchise in a text file named
starships.txt. Note that the file should be saved in your home directory, which is your personal folder that the operating system allocated to the corresponding user.
00:19 Also, each word in the file should be kept on a separate line. You can stop the video now. Think about this task and come up with your own solution. When you’re ready, proceed to the next lesson where you’ll see my solution that you can compare with yours.
Become a Member to join the conversation.