It gives boolean output in the form of True and False. In case the file is writable you will get True as your answer. However, if the file is not opened in write mode or append mode, you will get False as the answer.