HELP PLS Move it on back


Pls help i don't understand this exercicie.

pyg = 'ay'
new_word = word + first + pyg
original = raw_input('Enter a word:')
if len(original) > 0 and original.isalpha():
print original
print 'empty'

ERRORS:Traceback (most recent call last):
File "python", line 2, in
NameError: name 'word' is not defined


It means that you are trying to use a variable that is not yet defined. what is word?


python doesn't know anything about word...until and unless you define it or give a value to it..thats why NameError: word is not defined is displayed.


This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.