Question: me only final answer only option number 11. Consider this code: # data_file refers to a file open for reading. for line in data file:
me only final answer only option number
11. Consider this code: # data_file refers to a file open for reading. for line in data file: print (line) The program above prints the lines of the file but adds an extra blank line after each line. Select the code fragment(s) that when used as replacement(s) for print (line) will print the lines without extra blank lines. Note: use help to find out information about any functions or methods that you are not familiar with. print (line. strip()) print (line. rstrip(' \ ')) print (line - '\ ' ) print (line, end='')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
