QuestionQ121Verified/Functions and ExceptionsCopy linkReport a problemAsk AstroTutorSave questionThe part of your code where you expect an exception might occur should be placed inside:Athe except: branchBthe exception: branchCthe try: branchShow AnswerAnswerExplanationA try: block encloses code that may raise an exception. An associated except: block handles a matching exception if one is raised.Show comments0Show commentsCommunity DiscussionNo comments yet. Be the first to start the discussion!
Community Discussion