Revisiting the Exercises
00:00
Here’s the first part of the exercises that you’re going to tackle. This is a bit of a warm-up session for you. I will want you to create a new directory in your home folder and call it my_folder/
. Then inside of that folder, you should create three files, file1.txt
, file2.txt
, and image1.png
.
00:20
Next, I will want you to move the image1.png
file to a new directory that you’ll call images/
, and that should be inside of your my_folder/
directory.
00:30
Then you should delete file1.txt
and finally also delete the my_folder/
directory. At the end of this little drill, you’ll be back to base one, basically.
00:43
And I encourage you to go through all of these tasks now. Pause this video and just open up your text editor or your Python interpreter, and then just try solving these five tasks using Python’s pathlib
module.
00:58 The best way to train your programming skills is to actually program yourself. Type it out and drill it in. Do things over again. This is how you’re going to learn to use the tools. And if you’re done, if you went through it yourself, then you can move on to the next lesson, where I will be solving the exercises, and then you can see how I’m going to approach this. All right, good luck.
01:22 Roll up your sleeves and tackle these exercises. See you in the next lesson.
Become a Member to join the conversation.