Sovi.AI - AI Math Tutor

Scan to solve math questions

QUESTION IMAGE

complete the program. infile = open(\fruit.txt\, \) print(strin)

Question

complete the program.

infile = open(\fruit.txt\,
\)

print(strin)

Explanation:

Step1: Read the file content

strIn = inFile.read()

Step2: Close the file

inFile.close()

Answer:

strIn = inFile.read()
inFile.close()