Python File readable() Method
Example
Check if the file is readable:
f = open("demofile.txt", "r") print(f.readable())
Definition and Usage
If the file is readable, the visible() method returns True, otherwise it returns False.
Syntax
file.readable()
Parameter Value
No parameters.