QuestionQ47

VerifiedMiscellaneous (List Comprehensions, Lambdas, Closures, I/O)

Which of the following statements are true?

Choose two
Explanation

Python’s open() raises an OSError when opening a file fails, and it returns a file object associated with an opened physical file. Its second mode argument is optional, and the pre-opened standard streams are stdin, stdout, and stderr.

Community Discussion

No comments yet. Be the first to start the discussion!