QuestionQ82Verified/Functions and ExceptionsCopy linkReport a problemAsk AstroTutorSave questionWhat behavior is expected from the following program when the user enters 0? AThe program will raise the ZeroDivisionError exceptionBThe program will raise the ValueError exceptionCThe program will raise the TypeError exceptionDThe program will output 0 to the consoleShow AnswerAnswerExplanationPython’s input() function returns a string. Dividing the integer 10 by the string value "0" is not supported, so Python raises a TypeError.Show comments0Show commentsCommunity DiscussionNo comments yet. Be the first to start the discussion!
Community Discussion