Re: Multi-dimensional list initialization

Discussion in 'Python' started by Demian Brecht, Nov 5, 2012.

  1. On 2012-11-04, at 10:44 PM, Andrew Robinson <> wrote:
    > but I think you meant:
    >
    > m = [[None] * 4, [None] * 4, [None] * 4, [None] *4 ]
    > rather than:
    > m = [[None] * 4, [None] * 4, [None] * 4, [None * 4]]


    Yes, I meant the former, thanks for catching the typo.

    Demian Brecht
    @demianbrecht
    http://demianbrecht.github.com
     
    Demian Brecht, Nov 5, 2012
    #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. Replies:
    3
    Views:
    318
  2. Demian Brecht

    Multi-dimensional list initialization

    Demian Brecht, Nov 5, 2012, in forum: Python
    Replies:
    55
    Views:
    652
    Ethan Furman
    Nov 9, 2012
  3. Chris Rebert

    Re: Multi-dimensional list initialization

    Chris Rebert, Nov 5, 2012, in forum: Python
    Replies:
    2
    Views:
    194
    88888 Dihedral
    Nov 8, 2012
  4. Chris Angelico

    Re: Multi-dimensional list initialization

    Chris Angelico, Nov 5, 2012, in forum: Python
    Replies:
    0
    Views:
    203
    Chris Angelico
    Nov 5, 2012
  5. Andrew Robinson

    Re: Multi-dimensional list initialization

    Andrew Robinson, Nov 5, 2012, in forum: Python
    Replies:
    0
    Views:
    235
    Andrew Robinson
    Nov 5, 2012
Loading...

Share This Page