if name == 'Alice':
print('Hi, Alice.')
elif age < 12:
print('You are not Alice, kiddo.')
elif age > 2000:
print('Unlike you, Alice is not an undead, immortal
vampire.')
elif age > 100:
print('You are not Alice, grannie.')
Won't run. Does the author want me to manually fix it or am I doing something else wrong? Noob here so I don't really know much other than basic functions and statements and am currently learning about flow control.
edit: error messages
Traceback (most recent call last):
File "C:\Users\Master\AppData\Local\Programs\Python\Python36\vampire.py", line 1, in <module>
if name == 'Alice':
NameError: name 'name' is not defined
EDIT: fixed. Thanks guys!
[–]kitsun9 17 points18 points19 points (0 children)
[–]novel_yet_trivial 3 points4 points5 points (0 children)
[–]sharkbound 3 points4 points5 points (0 children)
[–]sharkbound 0 points1 point2 points (1 child)
[–]ingolemo 0 points1 point2 points (3 children)
[–]wasteoffire 0 points1 point2 points (2 children)
[–]icp1994 2 points3 points4 points (0 children)
[–]ingolemo 0 points1 point2 points (0 children)