Working PygLatin in Python 6.3


No raw_input but just input
print must have ()

pyg = 'ay'
original = input('Enter a word:')
if len(original) > 0 and original.isalpha():
    word = original.lower()
    first = word[0]
    new_word = word + first + pyg
    new_word = new_word[1:len(new_word)]
    print (new_word)
    print ('empty')


did this work properly?


Yes. I try with IDLE and Python 3.6


yes, this topic was specific to show the changes you need to make to make the code work in python3


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