Problem with my code


#1

hello friends

i have got a problem in my code of pig latin?

Establish new word equal to that part of the first index to the end of the nueva_palabra. Use `[1: len (nueva_palabra)] to do this.

this es my answer:

nueva_palabra = "Python"
print nueva_palabra[1:len(nueva_palabra)]
print nueva_palabra[1:]
print nueva_palabra[0:]
print nueva_palabra[0:len(nueva_palabra)]
print nueva_palabra[:1]

but i don´t understand what do..

please i need help!!!!


What do i do on pig latin 10-11
#2

pyg = 'ay'
nueva_palabra=palabra+primera+pyg
nueva_palabra[1:len(nueva_palabra)]
original = raw_input('Escribi una palabra:')

if len(original) > 0 and original.isalpha():
palabra=original.lower()
primera=palabra[0]
print original
else:
print 'vacio'