Question: Complete the code to append the values in my _ list to a file named my _ data.txt with one value in each line. m
Complete the code to append the values in mylist to a file named mydata.txt with one value in each line.
ist
a
file openmydata.txta
for i in mylist:
file.writei
b file openmydata.txtw
for i in mylist:
file.writestri
c
file openmydata.txta
for i in my list:
file.writestri
d
for i in mylist:
file.writei
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
