Please |Help


#1



this error message appears
Oops, try again. It looks like new_word contains "" instead of "gay"!


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


#2

problem1.
new_word = new_word[1:len(first)]

hint*
read instruction!
Also
You're not printing new_word.

Update**
@gilbert_foo
You don't need this line as CC editor is asking for input by itself.
original = raw_input('Enter a word:')


#3

thanks for the help, I figured it out


#4

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