demo_ref_file_isatty.py:
f = open("demofile.txt", "r") print(f.isatty())
➜ begtut>python demo_file_isatty.py
False