Question: Python In the code snippet below, if the file contains the following words: applo, pear, and banana stored one per line, what would be the
In the code snippet below, if the file contains the following words: applo, pear, and banana stored one per line, what would be the output? infile = open"input.txt", "r") for word in infile: word = word.rstripo print word) O apple pear banana O apple pear banana 0 apple, pear, banana O apple pear banana
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
