<div>&nbsp;</div>
<div>I am looking for something like this:</div>
<div>&nbsp;</div>
<div>int arr[5][5]; // C statement; declaring an array of 5 * 5 size</div>
<div>&nbsp;</div>
<div>Is there an easy and clean way to achieve this in python???</div>
<div>&nbsp;</div>
<div>Thanks</div>
<div><br><br>&nbsp;</div>
<div><span class="gmail_quote">On 10/4/06, <b class="gmail_sendername">Kent Johnson</b> &lt;<a href="mailto:kent37@tds.net">kent37@tds.net</a>&gt; 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>&gt;<br>&gt; Hi folks,<br>&gt;<br>&gt; I am stuck.. Please help me with implementing two dimensional array in
<br>&gt; 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.