Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > looping through a list of lists.

Thread Tools

looping through a list of lists.

Posts: n/a
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.

Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
looping in array vs looping in a dic Python 5 09-20-2012 11:58 PM
looping through json array loops through the characters instead ofthe values Aaron Javascript 2 04-10-2011 05:58 PM
std::list: remove from front without deleting or looping through whole list Andy C++ 3 06-08-2007 09:02 PM
looping through two list simultenously CSUIDL PROGRAMMEr Python 5 10-30-2006 04:31 AM
Re: looping through a list of lists. Rob Hunter Python 2 10-08-2003 05:31 PM