0
Fill in the blank1 with statement to write "abc" in the file "mydata"
f1=open("mydata","a") _________ #blank1 f1.close() mydata.write(abc). Is this correct?
2 Respuestas
+ 2
"mydata" is the file name, not the variable name in the program. And if you want to write a string into a file, you'll need to quote this string...
0
f1.write("abc")