QuestionQ61Verified/Python BasicsCopy linkReport a problemAsk AstroTutorSave questionWhich of the following appears in the output when the program program1.py shown below is run? ATypeError: cannot concatenate 'str' and 'int' objectsBNameError: name 'c' is not definedCacD15Show AnswerAnswerExplanationPython raises a NameError when an expression refers to a variable that has not been defined. The variable c is used in d = a + c but has no assigned value.Show comments0Show commentsCommunity DiscussionNo comments yet. Be the first to start the discussion!
Community Discussion