Free2Code
 
Time: 2008-12-04, 07:41pm
Multi-dimensional arrays?
Subject: Multi-dimensional arrays?  ·  Posted: 2006-03-10, 04:33am
Rank: ? (3)
Member #: 26558
Hey I'm more used to programming with C++/Java and such, and I'm somewhat new to python.

Is there any way to make something like a two dimensional array in python? I haven't seen anything about it in the documentation.

Thanks.

 
  Reply to this ·  Post link ·  Top
Subject: Re: Multi-dimensional arrays?  ·  Posted: 2006-06-21, 07:49am
Rank: ? (4)
Member #: 27845
http://diveintopython.org/native_data_types/lists.html#d0e5623

check the section: Example 3.11. The Difference between extend and append(4)

['a', 'b', 'c', ['d', 'e', 'f']]
>>> len(li) 4
4

 
  Reply to this ·  Post link ·  Top

Pages: 1

Please login or register to post a reply.

icons