What is wrong with this?


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


This line should be immediately following the input. It's the validation process that needs to take place before proceeding.


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