How do you check if a file is writable in Python?
file.writable()
os.path.writable()
os.access(file, os.W_OK)
file.is_writable()
This question is part of this quiz :