What gets printed with given code ?
f = None
for i in range (5):
with open("data.txt", "w") as f:
if i > 2:
break
print f.closed
Answers
Answered by
2
With the given cod, on execution a True statement will get printed.
- The given code is the code of Python language. The code also uses various syntax.
- When used with open file, the WITH statement guarantees that when the with block will exit, the file object will get closed.
- Thus, the code on execution will give a true statement.
Answered by
0
Explanation:
it is of python language
looping statement
answer true statement
Similar questions
Social Sciences,
5 months ago
English,
5 months ago
Computer Science,
9 months ago
Computer Science,
9 months ago
Physics,
1 year ago