I have a question.
Why do I have to put "word = original.lower()" and "first = word " within if statement?
And why does it not work when I put codes above before if statement, even if replacing "len(original)" with "len(word)" along with "word.isalpha()"?
Does anyone have an answer? Help!
pyg = 'ay' original = raw_input('Enter a word:') if len(original) > 0 and original.isalpha(): word = original.lower() first = word  print first else: print 'empty'