Vidyalelo
Python · Q48

Files Handling in Python

Programming · Python · question 48

Q48

What will be the output of the following Python code? f = None for i in range (5): with open("data.txt", "w") as f: if i > 2: break print(f.closed)

A.
True
Answer
B.
False
C.
None
D.
Error

Answer: Option A

Solution

Answer: Option A
No explanation is given for this question Let's Discuss on Board