[solved]-Code Snippet File Contains Following Words Monday Tuesday Wednesday Stored One Per Line Wo Q39009876
In the code snippet below, if the file contains the followingwords: Monday! Tuesday. Wednesday? stored one per line, what wouldbe the output?
infile = open(“input.txt”, “r”)for word in infile : word = word.rstrip(“.!n”) print(word)
Question 14 options:
A)
MondayTuesdayWednesday
B)
Monday Tuesday Wednesday
C)
Monday!Tuesday.Wednesday
D)
MondayTuesdayWednesday?
Expert Answer
Answer to In the code snippet below, if the file contains the following words: Monday! Tuesday. Wednesday? stored one per line, wh… . . .
OR

