pyg = 'ay' original = raw_input('Enter a word:') word = original.lower() first = word 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'
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.