Question 22

Last Updated :
Discuss
Comments

What will be the output of the following code?

Python
with open("example.txt", "w") as f:
    f.write("Hello, Python!")
print(f.closed)


False

True

None

Error

Tags:
Share your thoughts in the comments