demo_ref_file_readable.py:
f = open("demofile.txt", "r") print(f.readable())
C:\Users\My Name>python demo_file_readable.py
True