What built-in function will you use to open the file?

Questions & AnswersCategory: PythonWhat built-in function will you use to open the file?
1 Answers
Geek Boy Staff answered 2 years ago

a. open()

Explanation
open(file, mode=’r’, buffering=- 1, encoding=None, errors=None, newline=None, closefd=True, opener=None) – open file and return a corresponding file object. If the file cannot be opened, an OSError is raised.