title: for x in y, type iteration in python. Can I find out what iteration I'm currently on?
body: <p>I have a question about the loop construct in Python in the form of: <code>for x in y:</code> In my case y is a line read from a file and x is separate characters. I would like to put a space after every pair of characters in the output, like this: <code>aa bb cc dd</code> etc. So, I would like to know the current iteration. Is it possible, or do I need to use a more traditional C style for loop with an index?</p>