My code is not working. cn someone help


#1

pyg = 'ay'

original = raw_input('Enter a word:')

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


#2

not working in what way? Everything seems right, until you print original (which contains the original string entered by the user)

to print the translated version, print new_word instead


#3

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