Ex 10 Ending Up


#1

I ran this and get the correct translation. I then also get an oops message stating;Oops, try again. It looks like you printed the correct translation of "martin", but make sure to set new_word equal to the slice as well. I do not understand what it is looking for? Can you please help me??

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 original

else:
print 'empty'

s = new_word
print s[1:len(new_word)]


#2

I am also stuck in this step.


#3

It works
pyg = 'ay'

original = raw_input('Enter a word:')

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


#4

Thanks dude, I had so much trouble trying to remove the first character from raw_input!

Any idea why it didn't work when I only wrote: new_word[1:len(new_word)]?


#5

It must be in the form of
Print new_word[1:len(new_word)]


#6

it says i have it right but it then says i am wrong example below

ex. "Oops, try again. It looks like you printed the correct translation of "donuts", but make sure to set new_word equal to the slice as well"

what does that suppose to mean