Why does it say my response value is not defined?

Question

Why does it say my response value is not defined?

Answer

Be sure to write your answer as a string, with quotes around it! Otherwise Python assumes it is another variable name or function.
response = “String!” is what we’re looking for, not response = Y or response = N.
Also! Keep that error message in mind for later: NameError: name ‘X’ is not defined is an extremely common error that lets you know you either forgot quotes somewhere, or are using something outside of where it can be used.

3 Likes