Ending up!


#1

pyg = 'ay'

original = raw_input('Enter a word:')

word = original.lower()

first = word[0]
print first

new_word = word + first + pyg
print new_word

new_word = new_word[1:len(original)]

if len(original) > 0 and original.isalpha() :

else :
print "empty"

it shows this every time i run this code what should i do ??


#2

The question says you should put

new_word = new_word[1:len(new_word)]

#3

i don't get it now what should i do


#4

In your code you typed...

new_word = new_word[1:len(original)]
if len(original) > 0 and original.isalpha() :

This is what you should type...

if len(original) > 0 and original.isalpha() :
    new_word = new_word[1:len(new_word)]

...and don't forget to indent your if statements.


#5

thanks.............................................................................................................................