>>>fo=open(python.txt,wb)
>>>print(Name of the file:,fo.name)
Name of the file: python.txt
>>>print(Close or not:,fo.closed)
Close or not: False
>>>print(Opening mode:fo.mode)
Opening mode: wb
>>>fo.close()