Need help with 10 ending up


#1


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'


#2

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[ ... ]


#3

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


#4

I am still having some trouble


#5

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

new_word = new_word[1:len(new_word)]


#6

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


#7

This solved it for me :slight_smile:


#8

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