Working PygLatin in Python 6.3


#1



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)
else:
    print ('empty')


#2

did this work properly?


#3

Yes. I try with IDLE and Python 3.6


#4

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


#5

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