On Jul 10, 4:17 pm, Dave Angel wrote:
> vox wrote:
> > On Jul 10, 2:04 pm, Peter Otten <__pete...@web.de> wrote:
>
> >> You are probably misinterpreting len(s3). s3 contains lines occuring in
> >> "file1" but not in "file2". Duplicate lines
On Jul 10, 2:04 pm, Peter Otten <__pete...@web.de> wrote:
> You are probably misinterpreting len(s3). s3 contains lines occuring in
> "file1" but not in "file2". Duplicate lines are only counted once, and the
> order doesn't matter.
>
> So there are 119 lines that occur at least once in "file2", bu
Hi,
I'm contsructing a simple compare-script and thought I would use set
([]) to generate the difference output. But I'm obviosly doing
something wrong.
file1 contains 410 rows.
file2 contains 386 rows.
I want to know what rows are in file1 but not in file2.
This is my script:
s1 = set(open("file