Page 1 of 1

To open a file c:\scores.txt for writing, we use ____________

Posted: Wed Jul 13, 2022 7:45 pm
by answerhappygod
a) outfile = open(“c:\scores.txt”, “w”)
b) outfile = open(“c:\\scores.txt”, “w”)
c) outfile = open(file = “c:\scores.txt”, “w”)
d) outfile = open(file = “c:\\scores.txt”, “w”)