How can I know if my translator works properly?

Why is this not working?

the conditions and indention look off. What is it that you try to do?

Piglatin translator @stetim94

My code works great accept when the user (me) inputs to long of a word in the terminal. is there I don’t see where I would have limited the size of the word in the code, so is there a defined character limit for terminal inputs?

my code for the exercise

pyg = ‘ay’

This code draws an input (a word)from the user and assigns it to the variable original

original = raw_input('Enter a word: ')

The below code provides conditions that ensure the user only enters letters not numbers special charcters or spaces (.isalpha) and that they enter at least one charcter.

The below code also translates the output to all lowercase letters no matter how long the input is and then moves the first letter to the end of the original input and then adds “ay” on to the end to create a quick pig latin converstion of any word

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

idk if i missed it but i forgot to add print(new_word) . just in case anyone else is just getting the input word printed.