Robert,
The lists were created using MS Notepad, and I forgot about the newlines -
so you were absolutely right! So, is it possible to use strip() immediately
when reading a file into a list to avoid confusion down the road, and is
this common?
Thank you everyone who contributed to this thread :
shantanoo, Andre, and Robert:
All of your solutions seem to work (and thank you for the tips!), however,
with each solution there seems to be 2 MACs that should not be in the
results.
00:1C:14:BA:D9:E9 and
00:16:3E:EB:04:D9
should not be be turning up in the results because they are in the
'veri
- Justin
On Thu, Aug 25, 2011 at 3:29 PM, Giovanni Tirloni wrote:
> On Thu, Aug 25, 2011 at 4:08 PM, Justin Wendl
> wrote:
> > Hi John,
> >
> > Thanks for the quick response. Unfortunately it is returning the same
> > result..
>
> Please send a small
lines()
> verifiedList = open('verifiedList.txt', 'r').readlines()
>
> Now both are lists. I assume each mac address is on it's own line?
>
> -john
>
>
> On Thu, Aug 25, 2011 at 8:56 PM, Justin Wendl
> wrote:
> > Hello,
> >
> > Bare with me, as
Hello,
Bare with me, as I am new to Python and a beginner programmer.
I am trying to compare two lists (not of the same length), and create a new
list of items that are -not- found in both lists.
Scenario: I have a list of MAC addresses that are known and good, and am
comparing it to a list of MA