Using python 2.7.12 im using a simple program:
import time
print('Whats Your Name?')
name=input()
print('Happy Birthday to You')
time.sleep(1.5)
print('Happy Birthday to You')
time.sleep(1.8)
print('Happy Birthday Dear '+name)
time.sleep(2)
print('Happy Birthday to You')
time.sleep(1.5)
however when i try to input name i get this:
Whats Your Name? Jeff
Traceback (most recent call last):
File "E:\Python\happybirthday.py", line 3, in <module>
name=input()
File "<string>", line 1, in <module>
NameError: name 'Jeff' is not defined
Why? This seems to happen on every program which requires an input.