Set new_word equal to the slice from the 1st index all the way to the end of new_word. Use [1:len(new_word)] to do 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():
print original
print 'empty'


here you take the slice:


but you don't store it anywhere? Maybe you should store it in a variable? And maybe this variable needs a specific name?

Ignoring the design flaw in your program for a second


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