QuestionQ105Verified/Functions and ExceptionsCopy linkReport a problemAsk AstroTutorSave questionWhat is the output of the following code when the user enters 0? A1 | 0.0B1 | Very very bad input...C1 | 1.0D1 | Booo!E1 | Bad input...F1 | Very bad input...Show AnswerAnswerExplanationConverting "0" with int() succeeds, but dividing zero by zero raises ZeroDivisionError. The corresponding except ZeroDivisionError clause runs and prints Very bad input....Learn morePython Built-in ExceptionsShow comments0Show commentsCommunity DiscussionNo comments yet. Be the first to start the discussion!
Community Discussion