Newbie: How do I implement an 2 element integer array in Python.?

jbranthoover at my-deja.com jbranthoover at my-deja.com
Wed Oct 11 10:06:05 EDT 2000


Hello All,
	What is the syntax for creating a 2 element integer array?  I
have looked at the Array  Module documentation,  but I am afraid that I
don’t quite understand it.  In Basic I would do something like:

Dim	MyArray(100,16)


For i = 0 to 100
	For j = 0 to 16
	      MyArray( i,j ) = MyData
        Next j
Next i


	Can someone out there give me a quick example of how this
function is done in Python?  Thank you for you time and have a nice day.



Sent via Deja.com http://www.deja.com/
Before you buy.



More information about the Python-list mailing list