Python Madlibs.py code and error message

Gregory Ewing greg.ewing at canterbury.ac.nz
Thu Apr 28 00:50:15 EDT 2016


Cai Gengyang wrote:

> adjective1 = raw_input("Enter an adjective: ")
> 
> NameError: name 'Adjective1' is not defined

Python is case-sensitive. You've spelled it "adjective1" in one
place and "Adjective1" in another. You need to be consistent.

-- 
Greg



More information about the Python-list mailing list