Help with ending up!


#1

I really need help with this I've been stuck on it for weeks! So help would be much appreciated
pyg = 'ay'

original = raw_input('Enter a word:')

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


#2

I don't know if you formatted the code well, so your else block seems to be false. It only should only return 'empty'.

Here i have my code since you're coding for weeks! Don't get frustrated keep the hard work up and never give up! :wink:

pyg = 'ay'

original = raw_input('Enter a word:')

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

#3

THx so much for the help and advice