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


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)]

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??


Anyone got any ideas???


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



Thanks Zeziba, nice one...