Question: Consider the program below. 1 data _ file = open ( ' input . txt ' ) 2 file _ text = data _ file.read
Consider the program below.
datafile openinputtxt
filetext datafile.read
filelines filetext.split
for line in filelines::
items line.split
if lenitems:
printitems
The program operates on the text file below:
MFG
Mazda,
BMW
Honda,
Ford,
How many lines will the program output?
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
