Question: Python Which statement is used to close the file object opened with the following statement? infile = open( test.txt, r) O infile.close0 O close('test.txt) close(infile)
Which statement is used to close the file object opened with the following statement? infile = open(" test.txt", "r") O infile.close0 O close('test.txt") close(infile) O infile.closef'test.txt") Which statement is used to close the file object opened with the following statement? infile = open(" test.txt", "r") O infile.close0 O close('test.txt") close(infile) O infile.closef'test.txt")
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
