PygLatin bug?


#1


Why does this code not work? The output is correct.


pyg = 'ay'

original = raw_input('Enter a word:')

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


#2

Those lines do not look correct. Check with the instructions.


#4

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