Asking Help stuck at 10. Ending Up


#1

pyg = 'ay'

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

#2

you use new_word in the same line as you defining it:

new_word = new_word[1:len(new_word)]

that doesn't work, first you need to define a variable before you can use it


#3

thank you sir for your help, I figure it out now....


#4

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