Which of the following is NOT a valid way to open a file in Python?
A. open(“file.txt”, “r”)
B. open(“file.txt”, “w”)
C. open(“file.txt”, “x”)
D. open(“file.txt”, “a”)
Answer:C
Which of the following is NOT a valid way to open a file in Python?
A. open(“file.txt”, “r”) B. open(“file.txt”, “w”) C. open(“file.txt”, “x”) D. open(“file.txt”, “a”)