looping through a list of lists.

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • saoirse_79

    looping through a list of lists.

    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.




Working...