multidimensional lists

Discussion in 'Python' started by =?iso-8859-1?q?Orla=20O'Sullivan?=, Oct 7, 2003.

  1. I have a list of characters and I want to convert it
    into a list of lists..how can I do this??

    ________________________________________________________________________
    Want to chat instantly with your online friends? Get the FREE Yahoo!
    Messenger http://mail.messenger.yahoo.co.uk
     
    =?iso-8859-1?q?Orla=20O'Sullivan?=, Oct 7, 2003
    #1
    1. Advertising

  2. =?iso-8859-1?q?Orla=20O'Sullivan?=

    anton muhin Guest

    Orla O'Sullivan wrote:
    > I have a list of characters and I want to convert it
    > into a list of lists..how can I do this??
    >


    It's not obvious what precisely you want to achieve, but there are at
    least three options to work with multidimensional data structures in Python:

    1) list of lists: l[2][3] = 1;
    2) dictionaries: d[2, 3] = 1, etc...
    3) Numeric module

    regards,
    anton.
     
    anton muhin, Oct 7, 2003
    #2
    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. JustSomeGuy

    Sorting lists of lists...

    JustSomeGuy, Jun 17, 2004, in forum: C++
    Replies:
    0
    Views:
    324
    JustSomeGuy
    Jun 17, 2004
  2. Jon Slaughter

    lists of lists

    Jon Slaughter, Dec 13, 2004, in forum: C++
    Replies:
    4
    Views:
    426
    Buster
    Dec 13, 2004
  3. Nils Grimsmo
    Replies:
    1
    Views:
    269
    Michael Hoffman
    Oct 12, 2004
  4. Gabriel Birke
    Replies:
    1
    Views:
    334
    Kent Johnson
    Apr 17, 2005
  5. =?UTF-8?B?w4FuZ2VsIEd1dGnDqXJyZXogUm9kcsOtZ3Vleg==

    List of lists of lists of lists...

    =?UTF-8?B?w4FuZ2VsIEd1dGnDqXJyZXogUm9kcsOtZ3Vleg==, May 8, 2006, in forum: Python
    Replies:
    5
    Views:
    410
    =?UTF-8?B?w4FuZ2VsIEd1dGnDqXJyZXogUm9kcsOtZ3Vleg==
    May 15, 2006
Loading...

Share This Page