If I test the "empty" condition of the following, I get an IndexError that states the string index is out of range. Why is that? I want the script to print "empty" if the user input is empty.
pyg = 'ay'
original = raw_input('Enter a word:')
word = original.lower()
first = word[0]
if len(original) > 0 and original.isalpha():
if first in 'aeiou':
print "vowel"
new_word = original + pyg
print new_word
else:
new_word = word[1:len(original)] + first + pyg
print new_word
else:
print "empty"