QuestionQ48Verified/Functions and ExceptionsCopy linkReport a problemAsk AstroTutorSave questionWhat is the expected output from the following code? A1 42BThe code is erroneous.C1 1D3 1E3 42Show AnswerAnswerExplanationReassigning a function parameter affects only that local name, so x remains 3. Mutating the list through p2[0] modifies the same list referenced by y, making y[0] equal to 42.Show comments0Show commentsCommunity DiscussionNo comments yet. Be the first to start the discussion!
Community Discussion