[Tutor] how to do multiple searching against many lists
Srinivas Iyyer
srini_iyyer_bio at yahoo.com
Thu Jan 19 19:01:57 CET 2006
Hi Group,
my Problem:
I have soms list for variety of animals, birds,
bacteria
I have another list:
search_list =
['cat','python','parrot','donkey','e.coli']
animals = ['cat','tiger','donkey','zebra','lemur']
birs = ['parrot','mina','oriole','blue jay']
bacteria =
['e.coli','bacillus','staphy','acetobacter']
my output should look like this:
cat '\t' animal
python '\t' animal
parrot '\t' bird
donkey '\t'animal
e.coli '\t' bacteria
Can I do this using dictionaries , so that to make it
faster?
Thanks
Srini
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
More information about the Tutor
mailing list