SyntaxFix
Write A Post
Hire A Developer
Questions
Use the enumerate() function to generate the index along with the elements of the sequence you are looping over:
enumerate()
for index, w in enumerate(loopme): print "CURRENT WORD IS", w, "AT CHARACTER", index