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.
str_list =[]
# open DataFile6.txt for reading
file6= FillThisIn
# read lines from file6
for FillThisIn:
line = line.rstrip('')
str_list.append(line)
# close file6
FillThisIn
for i in range(len(str_list)):
str_list[i]= str_list[i].upper()
# open DataFile7.txt for writing
file7= FillThisIn
# write items in str_list to file7
for item in str_list:
FillThisIn
# close file6
FillThisIn
 Complete the code so it will read strings from a file

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!