To me it makes sense that it should work. apparently i'm wrong.
Enter a word: ayyebitch
Traceback (most recent call last):
File "python", line 4, in
TypeError: 'builtin_function_or_method' object has no attribute 'getitem'
Oops, try again. Did you create a variable called first?
original = raw_input('Enter a word:') pyg = 'ay' word = original.lower first = word print word if len(original) > 0 and original.isalpha(): print original else: print 'empty'