import os
def new_directory(directory, filename):
# Before creating a new directory, check to see if it already exists
# Create the new file inside of the new directory
# Return the list of files in the new directory
print(new_directory("PythonPrograms", "script.py"))
Run Code Online (Sandbox Code Playgroud) python ×1