Question: Complete the code so it will read strings from a file and then write them to another file. Replace 'FillThisIn' with missing code. str _
Complete the code so it will read strings from a file and then write them to another file. Replace 'FillThisIn' with missing code.
strlist
# open DataFiletxt for reading
file FillThisIn
# read lines from file
for FillThisIn:
line line.rstrip
strlist.appendline
# close file
FillThisIn
for i in rangelenstrlist:
strlisti strlistiupper
# open DataFiletxt for writing
file FillThisIn
# write items in strlist to file
for item in strlist:
FillThisIn
# close file
FillThisIn
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
