Explanation: it displays the output as shown below. the method next() is used when a file is used as an iterator, typically in a loop, the next() method is called repeatedly. this method returns the next input line, or raises stopiteration when eof is hit.
Q. fo.close()
β
Correct Answer: (C)
displays output
Explanation by: Mr. Dubey
it displays the output as shown below. the method next() is used when a file is used as an iterator, typically in a loop, the next() method is called repeatedly. this method returns the next input line, or raises stopiteration when eof is hit.
Discussion
Question Analytics
500
Total Visits
2 y ago
Published
Mr. Dubey
Publisher
84%
Success Rate