Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started