It’s redundant since, as you noticed, opening in write mode will overwrite the file. More information at Input and Output section of Python documentation.
It’s redundant since, as you noticed, opening in write mode will overwrite the file. More information at Input and Output section of Python documentation.