QuestionQ52Verified/Python BasicsCopy linkReport a problemAsk AstroTutorSave questionWhat output results from entering the following code in a Python interactive session? ANameError: name 'some_func' is not definedB5C5+10D15Show AnswerAnswerExplanationPython binds a function name only when its def statement executes. Because some_func() is called before that definition is reached, some_func is undefined and execution raises a NameError.Show comments0Show commentsCommunity DiscussionNo comments yet. Be the first to start the discussion!
Community Discussion