Jed Rembold
March 11, 2026

To the right are the contents of a text file named
PBride.txt. Which code snippet below would
print off the word “father”?
My name is Inigo Montoya.
You killed my father.
Prepare to die.
with open('PBride.txt') as f:
for line in f:
w = line.split()
if w[0] == "You":
print(w[-1])
c = read('PBride.txt')
print(c.find("father"))
with open('PBride.txt') as f:
c = f.read().splitlines()
print(c[1][4])
with open('PBride.txt') as f:
c = f.read()
i = c.find("f")
print(c[i:i+6])
Prob2.pymoby_dick.txt,
which contains the first paragraph from the classic text.word2piglatin
function
moby_bacon.txtGImage