QUESTION IMAGE
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))
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).
Snap & solve any problem in the app
Get step-by-step solutions on Sovi AI
Photo-based solutions with guided steps
Explore more problems and detailed explanations
open