Correction - the solution I provided returns an incorrect result. So
don't use it :)

johnP


On Jan 28, 4:26 pm, johnP <[email protected]> wrote:
> One possibility:
>
> >>> a,b,c,= [1,2,3,4,5], [4,5,6,7,8], [4,5,99,88,77]
> >>> res = list(set([i for i in (a+b+c) if (a+b+c).count(i) >1]))
> >>> print res
>
> [4, 5]
>
> johnP
>
> On Jan 28, 2:48 pm, Robert Kluin <[email protected]> wrote:
>
>
>
> > You might want to look at the "set" type in the standard library.
>
> > Robert
>
> > On Thu, Jan 28, 2010 at 2:41 PM, Adam <[email protected]> wrote:
> > > You might want to ask this over on comp.lang.python, as this is a
> > > Python-specific question. It is not really related to AppEngine.
>
> > > On Jan 28, 2:28 pm, alf <[email protected]> wrote:
> > >> I forgotted to say.
>
> > >> in more than 2 list.
>
> > >> thanks
>
> > >> On Jan 28, 8:03 pm, alf <[email protected]> wrote:
>
> > >> > we have two arrays
>
> > >> > a=[a,b,c,d,e]
>
> > >> > b=[x,c,e,w]
>
> > >> > I would like get a arry with only common value ej.
>
> > >> > res=[c,e]
>
> > >> > how can do it
>
> > >> > many tanks
>
> > > --
> > > You received this message because you are subscribed to the Google Groups 
> > > "Google App Engine" group.
> > > To post to this group, send email to [email protected].
> > > To unsubscribe from this group, send email to 
> > > [email protected].
> > > For more options, visit this group 
> > > athttp://groups.google.com/group/google-appengine?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.

Reply via email to