QuestionQ61

VerifiedPython Basics

Which of the following appears in the output when the program program1.py shown below is run?

Question Image

Explanation

Python 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.

Community Discussion

No comments yet. Be the first to start the discussion!