When you open a file for writing, if the file does not exist, a new file is created.
True
Reason — When we open a file for writing using w mode (text files) or wb mode (binary files), if the file does not exist, a new file is created.