QuestionQ183Verified/Functions and ExceptionsCopy linkReport a problemAsk AstroTutorSave questionWhat is the expected behavior of the following code snippet? It will:Acause a runtime exception on Line 9Bcause a runtime exception on Line 8Cprint 6Dprint 4Eprint 8Show AnswerAnswerExplanationThe function parameter x is local to a. The global x becomes 4 on Line 8, and calling a(4) returns 2 * 4, so the program prints 8.Show comments0Show commentsCommunity DiscussionNo comments yet. Be the first to start the discussion!
Community Discussion