removing common elemets in a list

John Zenger johnzenger at gmail.com
Wed May 16 11:36:41 EDT 2007


On May 16, 2:17 am, saif.shak... at gmail.com wrote:
> Hi,
>      Suppose i have a list v which collects some numbers,how do i
> remove the common elements from it ,without using the set() opeartor.
>                                                       Thanks

Submit this as your homework answer -- it will blow your TA's mind!

import base64
def uniq(v):
	return
eval(base64.b64decode('c29ydGVkKGxpc3Qoc2V0KHYpKSxrZXk9bGFtYmRhIHg6di5pbmRleCh4KSk='),locals())




More information about the Python-list mailing list