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 my_list to a file named my_data.txt with one value in each line.
mylist =[10,20,30,50]
xxxxxxx
a.
file = open('my_data.txt','a+')
for i in my_list:
file.write(i)
b. file = open('my_data.txt','w')
for i in my_list:
file.write(str(i)+'??
?'
c.
file = open('my_data.txt','a+')
for i in my list:
file.write(str(i)+'}
('
d.)
for i in my_list:
file.write(i)
 Complete the code to append the values in my_list to a

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!