list comprehention

markscala at markscala at
Thu Jan 19 11:42:28 EST 2006

def reference(alist1,alist2):
	counter = 0
	for x in lis:
		if x in ref:
			counter += 1
	return counter

this works I think for your examples, but you should check it against
them and other cases.
good luck

More information about the Python-list mailing list