Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

5. Write code that will do the following: a. Print out the name of the current working directory. b. Change the current working directory to

5. Write code that will do the following:

a. 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 name "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.

f. Print out the contents of the CPT180Stuff\cars folder as 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.

image text in transcribed
IDLE Shell 3.9.2 - OX File Edit Shell Debug Options Window Help Python 3.9.2 (tags/v3.9.2:1a79785, Feb 19 2021, 13:44:55) [MSC v.1928 64 bit (AND64) ] on win32 Type "help", "copyright", "credits" or "license ()" for more information.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Modern Dental Assisting

Authors: Doni Bird, Debbie Robinson

13th Edition

978-0323624855, 0323624855

Students also viewed these Programming questions

Question

=+products to the market be minimized?

Answered: 1 week ago