Pyg latin 6/10 confusion


#1

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


Please Help
#2

try this

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

I've managed to hit a code wall and I've confused myself
Exercise 11/11 - Stuck!
Help please
#3

Doesnt look like that works


#4

Set new_word equal to the slice from the 1st index all the way to the end of new_word. Use [1:len(new_word)] to do this.

Where is this suppose to go?

This is what I have ..

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


#5

This is your most important line here

new_word = original + first + pyg

This is the whole probelm of what you have to to, so let's only do what is needed and nothing else.

def pig_latin():
    original = raw_input("Enter a word")
    if (original and original.isalpha()):
        return original[1:] + original[0] + 'ay'
    else:
        print("Empty")

There is no reason to have holding variables and I think because of this that is where some or most of the confusion comes from this section. They want you to add stuff that adds nothing what so ever to your code and all the extras is just confusing to beginners.