Program Python untuk menilai apakah file ditutup atau tidak
with open('file1.txt','r') as f:
print(f.closed)
f.close()
print(f.closed)
Man
with open('file1.txt','r') as f:
print(f.closed)
f.close()
print(f.closed)