Sovi.AI - AI Math Tutor

Scan to solve math questions

QUESTION IMAGE

question # 6 fill in the blank complete the missing part of the line to…

Question

question # 6
fill in the blank
complete the missing part of the line to allow you to read the contents of the file.
infile = ((pets.txt,r))

Explanation:

Brief Explanations

In Python, to open a file for reading, the built - in open function is used. The first argument is the file name and the second is the mode ('r' for read).

Answer:

open