pyg = 'ay' original = raw_input('Enter a word:') word = original.lower() if len(original) > 0 and original.isalpha(): print original first = word(0) second = word(1) third= word(2) else: print 'empty'
You don't need them!
After you get rid of them...
You'll still get an error!
first = word(0)
We use Square bracket
 to access the individual characters of a string!
Read the instruction of this exercise!
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.