Definition
The writable() method returns True if the file is writable, False if not. A file is writable if it is opened using "a" for append or "w" for write.
Syntax
file.writable()
Parameters
No Parameters.
Examples:
f = open("demofile.txt", "a")
print(f.writable())