QuestionQ85

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

Which of these statements is true?

Explanation

In Python, open() accepts an optional second parameter, mode; when omitted, it defaults to text read mode ("rt"). A failed open() call raises an OSError subclass, and successful calls return file objects. The standard streams are named stdin, stdout, and stderr.

Community Discussion

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