Question: file to your documents folder. Extract the files here.] 3. Create a program named workWithFilesl.py. 4. Add four comment Ines of the top of the
![file to your documents folder. Extract the files here.] 3. Create](https://dsd5zvtm8ll6.cloudfront.net/si.experts.images/questions/2024/10/67094c7b83afb_65167094c7b731c2.jpg)
file to your documents folder. Extract the files here.] 3. Create a program named workWithFilesl.py. 4. Add four comment Ines of the top of the program that contain: a. Program Name b. Program Description C. Programmer's Name [You] d. Current Date 5. Write code that will do the following: Print out the name of the current working directory. b. Change the current working directory to the CPT180stuff folder. C. Print out the name of the current working directory. d. Create a new folder in the CPT180Stuff folder with the nome "cellphones". In your code, check and ensure that the folder does not already exist prior to attempting to create it. e. Print out the contents of the CPT180Stuff folder as shown in Example Output. Print out the contents of the CPT180stuff\\cars folder os shown in Example Output. g. Print out the contents of the CPT180stuff\\pets folder as shown in Example Output. h. Print out the contents and file sizes of the CPT180\\pets\\ cats folder as shown in the Example Output. The code should work for any folder contents. i. Print out the contents and file sizes of the CPT180\\pets\\ dogs folder os shown in the Example Output. The code should work for any folder contents. 6. At the end of your code, using comment lines, answer the following question: a. What would be the result of the following code and what is the significance of the result: from pathlib import Poth print(Path.home())
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
