<html>
<body>
In fear of bringing down the quality of the list, I nevertheless will
ask:<br><br>
<br>
How I can tell where I am in a for loop?  <br><br>
I think I am working way too hard to try to determine this - there is
probably a  very simple way to know?<br><br>
Spam_locations=[]<br>
list=['linguine','Spam', 'clams', 'Spam', 'steak', 'onions', 'apples',
'Spam']<br>
for food in list:<br>
<x-tab>        </x-tab>if
food='Spam':<br>
<x-tab>        </x-tab>Spam_location.append(##
position in list ##)   ## but how do I back reference the
position in the for loop?<br><br>
I am hoping to get:<br><br>
>>> Print Spam_locations<br>
[1,3,7]<br>
<x-tab>        </x-tab><br>
I was thinking the back reference might be something like: 
<dl>
<dd>Spam_location.append(list.__iter__()) 
</dl>But that gives me <listiterator object at 0x00DBE3B0> not a
value (position)...<br><br>
I promise to be smarter next year... any help?<br><br>
<br>
EP<br><br>
<br>
</body>
</html>