How to create a folder in Python

To create a folder in Python you can use the following snippet.

Sample Python

import os  
os.mkdir("folderName", 0777)

Please Share us:
Please rate this snippet

2 thoughts on “How to create a folder in Python

Leave a Reply