What is wrong with this?


#1

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 
else:
print 'empty'

#2

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


#3

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