QuestionQ206Verified/Functions and ExceptionsCopy linkReport a problemAsk AstroTutorSave questionWhat is the expected output from the following code? A2BNoneCThe code is erroneous.D4Show AnswerAnswerExplanationThe global y declaration makes the assignment inside func update the module-level variable y. Calling func(2) sets y to 4, so print(y) outputs 4.Show comments0Show commentsCommunity DiscussionNo comments yet. Be the first to start the discussion!
Community Discussion