The code works until I put the else and final print 'Empty.'.
The error message reads like this:
File "python", line 9
SyntaxError: invalid syntax
It should either print new.lower or if empty the exact word for it. Empty.
pyg = "ay"
answer = raw_input('Type a word in English:')
word = answer.lower()
first = word
new = word[1:] + first + pyg
if len(answer) >= 1 and answer.isalpha():
Edit: Code seems to work now.