The error type is an indentation error, as you see.
So, your indentation is totally wrong. In Python, the code doesn’t work as you want if you don’t have your indentation fixed. Your code should look like this:
pyg = ‘ay’
original = raw_input(‘Enter a word:’)
if (len(original) > 0 and original.isalpha()):
word = original.lower()
first = word
because the if/else statement is covering the code.
If you have learned HTML or something, you’ll have learned that this is inheritance, with parents and childs.
Here, ‘if’ is parent to everything beneath until ‘else’, which is parent to ‘print ‘empty’’