Not working someone can help me


#1

the my cod is not working someone can help me

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

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


Ending up Pyg Latin
#2

This line is no longer needed so can be safely removed.

This line is not doing anything, but it will be useful if you assign it back on to new_word, then in the next line, just print new_word.


#3

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