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 
_______________________________________________
Tutor maillist  -  [email protected]
http://mail.python.org/mailman/listinfo/tutor

Reply via email to