Help, code is not working


I can't figure out why my code is incorrect...I've gone back continuously to check my work and I've been stuck for a couple days. Please tell me how to fix it!

Replace this line with your code. 
pyg = 'ay'

original = raw_input('Enter a word:')

if len(original) > 0 and original.isalpha():
    word = original.lower()
    first = word[0]
    new_word = word + first + pyg
    print new_word
    print 'empty'


the slice you take here:


you don't store it anywhere, store it in new_word (in essence updating the variable)


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