Q. What will open('data.txt', 'x') do if data.txt already exists?
β
Correct Answer: (C)
Raise an error
Explanation: The 'x' mode raises a FileExistsError if the file already exists.