QuestionQ89Verified/Functions and ExceptionsCopy linkReport a problemAsk AstroTutorSave questionWhat result is expected when the following code is run? AThe code prints 2BThe code prints 1CThe code prints 0DThe code raises an unhandled exception.Show AnswerAnswerExplanationrange(2, 3) produces the value 2, so the list is [2]. The function uses the global variable and increments it by parameter[0]; therefore, it changes from 0 to 2, which is printed.Show comments0Show commentsCommunity DiscussionNo comments yet. Be the first to start the discussion!
Community Discussion