Still no progress with this myself. <br><br>For clarification if I didn't provide enough earlier, <br>for item in list1:<br> if item in list2:<br> print item and list[object at location where matched item] <-- need this location.
<br><br><div><span class="gmail_quote">On 10/18/06, <b class="gmail_sendername">Chris Hengge</b> <<a href="mailto:pyro9219@gmail.com">pyro9219@gmail.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
I'm looking for a way to do the following. <br><br>for item in limitedLineList:<br> if item in directoryList:<br> print match.ljust(20) + limitedLineList[count].ljust(20) + directoryList[<span style="text-decoration: underline;">
count</span>].ljust(20)<br> else:<br> print fail.ljust(20) + limitedLineList[count].ljust(20) + directoryList[<span style="text-decoration: underline;">count</span>].ljust(20)<br> os.rename(pathName + directoryList[
<span style="text-decoration: underline;">count</span>], pathName + limitedLineList[count])<br> count = count + 1<br><br>Where I have underlined, needs to be the item from the directoryList, and I'm unable to find a way to return that.
<br><br>The code is actually doing what I want correctly, (cheated a test by hand changing variables), but I need to find the directory location.<br><br>Thanks.<br>
</blockquote></div><br>