QuestionQ107Verified/Functions and ExceptionsCopy linkReport a problemAsk AstroTutorSave questionWhat is the expected output from the following code? A2 1B2 2C1 1D1 2Show AnswerAnswerExplanationx is a global variable with the value 1. Calling func() prints x + 1, which is 2, and the final print(x) outputs 1.Show comments0Show commentsCommunity DiscussionNo comments yet. Be the first to start the discussion!
Community Discussion