Cannot pass level ten on pig latin


#1

new_word = word + first + pyg
new_word [1:len(new_word)]

print original 
print new_word

else:
print 'empty'


#2

You seem to be missing a lot of your code from previous lessons! Can you post your full code? Or I would suggest going back and incorporating those lessons into this one!


#4

I have the same problem that cannot pass

pyg = 'ay'

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

Where am I wrong?


#5

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