Python Error Messages

malcolm.kaulback

Prominent
Jan 18, 2018
1
0
510
0
Hi, i am writing this code in python for a project and i am getting this errors.
Code:
def early():
print("How was Bernie Taupin Influenced?")
answer = input(">")
if answer == "Mother":
print("Bernie Taupin was born May 22, 1950 as a English lyricist, poet, and singer. Taupin's mother had studied French literature and his maternal grandfather Poppy was a classics teacher and graduate of the University of Cambridge.")
print("They taught him an appreciation for nature and for literature and narrative poetry, both of which influenced his early lyrics.")

early()

Errors:
Traceback (most recent call last):
File "Guy.py", line 9, in <module>
early()
File "Guy.py", line 5, in early
answer = input(">")
File "<string>", line 1, in <module>
NameError: name 'Mother' is not defined
 
Thread starter Similar threads Forum Replies Date
A Apps General Discussion 5
T Apps General Discussion 5
A Apps General Discussion 4
A Apps General Discussion 4
A Apps General Discussion 1
R Apps General Discussion 1
A Apps General Discussion 1
H Apps General Discussion 1
G Apps General Discussion 5
M Apps General Discussion 11
A Apps General Discussion 6
G Apps General Discussion 19
C Apps General Discussion 1
Jaakey Apps General Discussion 2
T Apps General Discussion 3
B Apps General Discussion 4
R Apps General Discussion 1
D Apps General Discussion 6
G Apps General Discussion 3
Computerchap Apps General Discussion 5

ASK THE COMMUNITY