Q. To open a file c:\scores.txt for writing, we use (Solved)
1. outfile = open(“c:\\scores.txt”, “w”)
2. outfile = open(“c:\\scores.txt”, “w”)
3. outfile = open(file = “c:\\scores.txt”, “w”)
4. outfile = open(file = “c:\\scores.txt”, “w”)
- b. outfile = open(“c:\\scores.txt”, “w”)