Ending up


Replace this line with your code.

I can not pass this code
Please help me what's the problem in the code

pyg = 'ay'

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


It looks like you should be printing new_word instead of original.


I fix as you said but it still in wrong


you use square brackets to take a slice, but you don't specify of what you take a slice, if i want to take slice of a string:

"hello world"[0:6]

see how i specify the string before the square brackets? so python knows i want a slice of the string