looping through a list of lists.

saoirse_79 saoirse_79 at yahoo.com
Wed Oct 8 11:04:28 EDT 2003


I have a list of lists as follows:
[['-', '-', '-', '-', '-', '-', '-', 'K', 'S', 'A', 'K'],
['-', '-', '-', '-', 'L', 'Q', 'Q', 'T', 'N', 'S', 'E'], 
['T', 'L', 'E', 'E', 'L', 'M', 'K', 'L', 'S', 'P', 'E']]
I want to be able to read each character  and compare it with all 
characters at the same positon in all sublists. Is this possible.
I have tried a few different methods but nothing seems to allow me to 
compare the sublists character by character.








More information about the Python-list mailing list