Answers for "how to write a file create a file using python"

0

make a file in python

import os
 
newpath = r'C:Program Filesarbitrary' 
if not os.path.exists(newpath):
    os.makedirs(newpath)
Posted by: Guest on August-08-2021

Code answers related to "how to write a file create a file using python"

Python Answers by Framework

Browse Popular Code Answers by Language