Question: What happens when Python tries to open a file in write mode, but the file does not exist ( this is what you just did
What happens when Python tries to open a file in write mode, but the file does not exist this is what you just did
An error will appear
Python will create the file
Python will ask you if you want to create the file
Nothing happens
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
