Is this a bug? I don't know where to start
jim bardin
bardinjw at yahoo.com
Wed Jun 22 20:32:20 EDT 2005
wow. that's too obviouse!
i've been looking at everything, but i just assumed
the data in the example was ok.
thanks alot
jim
--- Jeff Epler <jepler at unpythonic.net> wrote:
> Your list "targets" contains some values twice.
>
> >>>
>
targets=[97,101,139,41,37,31,29,89,23,19,8,13,131,19,73,97,19,139,79,67,61,17,113,127]
> >>> for t in set(targets):
> ... if targets.count(t) > 1: print t
> ...
> 97
> 139
> 19
>
> It looks like the "duplicated" items in the output
> contain one of the
> duplicated items from the input.
>
> Jeff
>
More information about the Python-list
mailing list