Word Up


#1

Whenever I put in this code it says original is not defined though I already defined it.

pyg = 'ay’
original = raw_input(‘Enter a word:’)
word = orginal.lower()
first = word[0]
if len(original) > 0 and original.isalpha():
print original
else:
print ‘empty’


#2

The above is the validation line that should follow immediately after the input statement.

It is no long necessary to print original.


#3

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