Answers for "how to create file using python cat command"

1

how to create file using python cat command

import os
os.system("cat > brightness_control_in_python.py")
#if this error comes no worries your file is already created
'cat' is not recognized as an internal or external command,
operable program or batch file.
#take a look in your folder where you make python files you will find your file
#created there
Posted by: Guest on September-28-2021

Code answers related to "how to create file using python cat command"

Python Answers by Framework

Browse Popular Code Answers by Language