<div dir="ltr"><div>Hi all,</div>
<div> </div>
<div>I would like to do something like following in Python:</div>
<div> </div>
<div>for i in range(0,10):</div>
<div> a[i] = something</div>
<div> </div>
<div>just to initialize some values for 1d array.</div>
<div> </div>
<div>I am getting the error message 'a' is not defined.</div>
<div> </div>
<div>Is there a way to declare 1d or 2d arrays in Python?</div>
<div> </div>
<div>Thanks,</div>
<div>David</div></div>