Question: please answer these two questions What is output by the following code segment when input.txt contains the following words: apple , pear, and banana stored

 please answer these two questions What is output by the following

code segment when input.txt contains the following words: apple , pear, and

please answer these two questions

What is output by the following code segment when input.txt contains the following words: apple , pear, and banana stored one per line? "r") infile = open("input.txt", for word in infile print (word) apple pear banana apple pear banana apple pear banana apple, pear, banana

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!