Directory & IO
Working with Directories
import os
# Create a new directory called "newdir"
os.mkdir("emmanuella")import os
# Change the current working directory to "newdir"
os.chdir("emmanuella")import os
# List the contents of the current working directory
contents = os.listdir()
print(contents)Last updated