pyg = 'ay' word = "original.lower()" first = word original = raw_input('Enter a word:') if len(original) > 0 and original.isalpha(): print original else: print 'empty'
These two lines should be at the end of the file:
word = "original.lower()" first = word
you want to convert the word to lowercase, to achieve this, remove quotation marks:
word = original.lower()
This should be done after the if else statement, since it converts the user input and you want to sure the input is valid before continue