Definition
The readable() method returns True if the file is readable, False if not.
Syntax
file.readable()
Parameters
No Parameters.
Examples:
f = open("myFile.txt", "r")
print(f.readable())
The readable() method returns True if the file is readable, False if not.
file.readable()
No Parameters.
f = open("myFile.txt", "r")
print(f.readable())