QuestionQ19Verified/Exception HandlingCopy linkReport a problemAsk AstroTutorSave questionWhat is the output of the following commands entered in the Python Interactive shell? ATry Else Except FinallyBTry FinallyCTryDTry Else FinallyShow AnswerAnswerExplanationBecause the try block completes without raising an exception, Python executes the else block and skips except. The finally block executes regardless of whether an exception occurred, so the output is Try Else Finally.Show comments0Show commentsCommunity DiscussionNo comments yet. Be the first to start the discussion!
Community Discussion