Add to Chrome
✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.
Which of the following will create a new file only if it does not already exist?
open('file.txt', 'r')
open('file.txt', 'x')
open('file.txt', 'w')
open('file.txt', 'a')
Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!