demo_ref_file_readable.py:
f = open("demofile.txt", "r") print(f.readable())
➜ begtut>python demo_file_readable.py
True