<div> </div>
<div>I am looking for something like this:</div>
<div> </div>
<div>int arr[5][5]; // C statement; declaring an array of 5 * 5 size</div>
<div> </div>
<div>Is there an easy and clean way to achieve this in python???</div>
<div> </div>
<div>Thanks</div>
<div><br><br> </div>
<div><span class="gmail_quote">On 10/4/06, <b class="gmail_sendername">Kent Johnson</b> <<a href="mailto:kent37@tds.net">kent37@tds.net</a>> wrote:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">Asrarahmed Kadri wrote:<br>><br>> Hi folks,<br>><br>> I am stuck.. Please help me with implementing two dimensional array in
<br>> Python.<br><br>Nested lists are the simplest way though beware the gotcha shown here:<br><a href="http://www.python.org/doc/faq/programming/#how-do-i-create-a-multidimensional-list">http://www.python.org/doc/faq/programming/#how-do-i-create-a-multidimensional-list
</a><br><br>You can also use a dict with tuple indices, e.g.<br>d[1,2] = 3<br><br>Numpy is an extension designed for high-performance numerical work, it<br>includes a multidimensional array type:<br><a href="http://numpy.scipy.org//">
http://numpy.scipy.org//</a><br><br>Kent<br><br></blockquote></div><br><br clear="all"><br>-- <br>To HIM you shall return.