looping through a list of lists.

Discussion in 'Python' started by saoirse_79, Oct 8, 2003.

  1. saoirse_79

    saoirse_79 Guest

    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.
    saoirse_79, Oct 8, 2003
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Rob Hunter

    Re: looping through a list of lists.

    Rob Hunter, Oct 8, 2003, in forum: Python
    Replies:
    2
    Views:
    300
    anton muhin
    Oct 8, 2003
  2. saoirse_79

    Re: looping through lists

    saoirse_79, Oct 9, 2003, in forum: Python
    Replies:
    3
    Views:
    283
    Alex Martelli
    Oct 9, 2003
  3. Joachim Worringen
    Replies:
    6
    Views:
    291
  4. =?UTF-8?B?w4FuZ2VsIEd1dGnDqXJyZXogUm9kcsOtZ3Vleg==

    List of lists of lists of lists...

    =?UTF-8?B?w4FuZ2VsIEd1dGnDqXJyZXogUm9kcsOtZ3Vleg==, May 8, 2006, in forum: Python
    Replies:
    5
    Views:
    401
    =?UTF-8?B?w4FuZ2VsIEd1dGnDqXJyZXogUm9kcsOtZ3Vleg==
    May 15, 2006
  5. Andy
    Replies:
    3
    Views:
    483
    James Kanze
    Jun 8, 2007
Loading...

Share This Page