multidimensional "arrays"

Discussion in 'Python' started by Horacius ReX, Dec 6, 2007.

  1. Horacius ReX

    Horacius ReX Guest

    in python, when I want to use arrays, I follow this way;

    DATA = [0] * nint

    and when I want to use I do;

    .....

    DATA = ....

    do you know how to do similar but in two dimensions ?

    thanks
     
    Horacius ReX, Dec 6, 2007
    #1
    1. Advertisements

  2. Horacius ReX:
    [[None, None, None, None], [None, None, None, None], [None, None,
    None, None]]

    Bye,
    bearophile
     
    bearophileHUGS, Dec 6, 2007
    #2
    1. Advertisements

  3. Investigate the numpy module if you are dealing with numbers.

    Jeremy
     
    Jeremy Sanders, Dec 6, 2007
    #3
    1. Advertisements

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.