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