my code is exucted and passes as it should do,but the output is not as expected.

It is a Pig Latin translator.but the output is exactly the same as the input which contradicts the aim of the code.

Replace this line with your code. 
pyg = 'ay'

original = raw_input('Enter a word:')

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


Hi, @designplayer63179 ,

You have this line in the else block ...

print new_word

That line should instead replace the final line in the if block. When the user enters a valid word, we need to see the translation rather than the original word again.


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