PygLatin


#1

pyg = 'ay'
word=original.lower()
first=word[0]
new_word=first+word+pyg
new_word=word[1:len(new_word)]

original = raw_input('Enter a word:')

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

l entered the word 'ishe' and its saying "it looks like new_word contains 'she' instead of 'sheiay'


#2

These should be the second and third lines of your program.

These would be lines 4 through 7, indented inside the if.

This line will be,

print new_word

#3

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