QuestionQ47Verified/Miscellaneous (List Comprehensions, Lambdas, Closures, I/O)Copy linkReport a problemAsk AstroTutorSave questionWhich of the following statements are true?Choose twoAif invoking open() fails, an exception is raisedBinstd, outstd, errstd are the names of pre-opened streamsCopen() requires a second argumentDopen() is a function which returns an object that represents a physical fileShow AnswerAnswerExplanationPython’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.Show comments1Show commentsCommunity DiscussionNo comments yet. Be the first to start the discussion!
Community Discussion