Traceback (most recent call last):


 "<stdin>", line 1, in <module>
ValueError: math domain error

Traceback (most recent call last):


 "t1.py", line 6, in <module>

print(a.read())
ValueError: read of closed file
