Pls tell me what is the problem here


#1



PygLatin


The word did not add 'ay' behind


pyg = 'ay'

original =raw_input('Enter a word:')


if len(original) > 0 and original.isalpha():
   first=original[0]
   new_word=original+first+pyg
   print(new_word[1:len(original)])

else:
   print 'empty'


#2

What lesson are you on?


#3

After the "if" statement, you must create a new "word" variable, and assign "original" to be in lowercase.
Then match your variable "first" with the first letter of "word".

One more thing: Your "print" should only print "original"


#4

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