Testing testing is this thing on?


#1



Im just wondering that why the code is not doing the pig latin even tho its exactly what code academy thought me to do it.

pyg = 'ay'
original = raw_input('Enter a word:')

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

Replace this line with your code.


#2

of course it lets me pass the course but I still wonder whats wrong with the code, or is there anything wrong with my code


#3

print original

you're printing the word instead of the new word.


#4

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