HELP! Not able to move on even though the answer is right


#1

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[1:len(new_word)]

else:
print 'Please use letters only!'

This code returns a correct solution to PygLatin, but the 'Site' says it still spells the inputed word correctly
Which it doesn't, as a result the 'Site' won't allow me to move on!!!!! Any solutions folks??


#2

Anyone got any ideas???


#3

Well your code is not correct.

Rules of Pig latin:

  1. Move first letter to end
  2. Add ay to the end.

So in essence

original = 'word'
print(word[1:] + word[0] + 'ay')

Then just apply your checking statement before and after, also it wants you to do

else:
    print('empty')

#4

Thanks Zeziba, nice one...