Hi everyone! I made my code for Pyglatin, but when im going to test it, it shows the word without the first letter and without “ay” for example:
enter a word: hola
the result will be: ola.
here’s my code:
pyg = ‘ay’
original = raw_input(‘Enter a word:’)
if len(original) > 0 and original.isalpha():
word = original.lower()
first = word
new_word = word + first + pyg
new_word = new_word [1:len(original)]
Thank you for your help!