Need help with 10 ending up


10 ending up

somebody please help me i have been stuck here forever. somebody please tell me what is wrong and please be very thorough and explain very clearly because i cant get things very clearly

Replace this line with your code. 
pyg = 'ay'

original = raw_input('Enter word:')

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


This should be in the else branch.

Your indentation looks a little off. Be sure it is uniform and consistent.

The slice needs an object...

... = new_word[ ... ]


5 posts were split to a new topic: My code is not working


I am still having some trouble


Thanks! This was the issue I was having.
Didn't realise that I needed to type

new_word = new_word[1:len(new_word)]


A post was split to a new topic: Have a problem


This solved it for me :slight_smile:


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