Need help in ending up


#1

pyg = 'ay'

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


#2

here:

word=original.lower()
first=word[0]
new_word=word+first+pyg

are you sure you want to do all this steps before you validated the user input is valid?

you need to store the slice in new_word, so new_word contains the correct translation, which you can then print


#3

i did this thank you for the help once again :smile:

pyg = 'ay'

original = raw_input('Enter a word:')
word=original.lower()
if len(original) > 0 and original.isalpha():

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

else:
print 'empty'
@stetim94


#4