how to make directory in cmd 1

how to make directory in cmd

 mkdir
 #after mkdir write the name you want to put for the directory 

Here is what the above code is Doing:
1. We are importing the os module.
2. We are creating a variable called path and setting it equal to the current working directory.
3. We are creating a variable called new_path and setting it equal to the path variable plus the name of the new directory we want to create.
4. We are using the os.mkdir() function to create a new directory called “new_folder” in the current working directory.

Similar Posts