how to create file using python cat command

Solutions on MaxInterview for how to create file using python cat command by the best coders in the world

showing results for - "how to create file using python cat command"
Henri
21 Mar 2016
1import os
2os.system("cat > brightness_control_in_python.py")
3#if this error comes no worries your file is already created
4'cat' is not recognized as an internal or external command,
5operable program or batch file.
6#take a look in your folder where you make python files you will find your file
7#created there