Dear Python fellows,
I’m stuck here with the PygLatin game: my code is marked as correct, yet it simply won’t do what it’s supposed to do - translate the original word. Here is my code:
pyg = ‘ay’
original = raw_input(‘Enter a word:’)
if len(original) > 0 and original.isalpha():
word = original.lower()
first = word
new_word = word + first + pyg
new_word = new_word[1:len(new_word)]
Does anyone know what the problem is?
Thanks a lot in advance!