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

Sample Python

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

2 thought on “How to create a folder in Python”

Leave a Reply