Question: I 'm having trouble working on starting a program and am unsure on where to begin... 1. Initiate a program named workWithFiles.py. 2. Fashion the

I'm having trouble working on starting a program and am unsure on where to begin...

1. Initiate a program named workWithFiles.py.

2. Fashion the code that will do the following:

a. Print out the name of the current working directory.

b. Change the current working directory to the Practice folder.

c. Print out the name of the current working directory.

d. Initiate a new folder in the Practice folder with the name "cellphones". In the code, check and ensure that the folder does not already exist prior to attempting to create it.

e. Print out the contents of the Practice folder.

f. Print out the contents of the Practice\cars folder.

g. Print out the contents of the Practice\pets foldert.

h. Print out the contents and file sizes of the Prac\pets\cats folder.

i. Print out the contents and file sizes of the Prac\pets\dogs folder.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!