Question: Start with this program in a new program file: from read_lines import read_lines lines = read_lines() print(lines) ci = theta contin = True while contin:

 Start with this program in a new program file: from read_lines

Start with this program in a new program file: from read_lines import read_lines lines = read_lines() print(lines) ci = theta contin = True while contin: if ???: contin - False else: line = ??? ??? print(ci. line) It's your job to fill in the question marks with statements that make the program work. If these lines are the input: abc def ghi Then after the last line and the empty line are entered, then the program needs to display this output: [' abc', ' de f', ' ghi] (leftarrow this is from the first print statement) 1 abc (leftarrow now the loop starts) 2 def 3 ghi In other words, each line of input is numbered from 1 and displayed. Use the variable ci as the number to display

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!