Re: How do you do arrays

2005-02-01 Thread Thomas Bunce
an array anymore. But, > depending on your application, a dictionary may be perfectly suitable. > > Hope this helps. > > Dan > > "Thomas Bunce" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > >I am new at Pyton and I am l

Re: How do you do arrays

2005-02-01 Thread Thomas Bunce
It was when I saw a use of complex numbers as a usable statement I became interested in Python Tom In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] wrote: > If you want do numerical calculations with vectors and matrices, you > should probably use the Numarray module. Python's built-i

Re: How do you do arrays

2005-02-01 Thread Thomas Bunce
Learning Python O'Reilly book and Python In A Nut Shell and about 2 inchs printed of Web information Tom In article <[EMAIL PROTECTED]>, "Kartic" <[EMAIL PROTECTED]> wrote: > Tom, > > It has to be iMatrix.append(k), not iMatrix[index] = k. Python will > give an error - list assignment in

Re: How do you do arrays

2005-02-01 Thread Thomas Bunce
Tryed it and this is what I got (I did go to the web sight) tom(h=500)$ /tmp/501/Cleanup\ At\ Startup/ptesting-128981347.87.py.command; exit Input the maximu number of tvalue: 114 Traceback (most recent call last): File "/Users/tom/Desktop/ptesting.py", line 20, in ? iMatrix[index] = k Index

Re: How do you do arrays

2005-02-01 Thread Thomas Bunce
Thanks all Tom -- http://mail.python.org/mailman/listinfo/python-list

How do you do arrays

2005-02-01 Thread Thomas Bunce
I am new at Pyton and I am learning from book not classes so please forgive my being slow The below does not work I get an Error of File "Matrix[index] = k NameError: name 'iMatrix' is not defined" while index < majorlop1: index = index + 1 k = random.choice(listvalues) + 1 iMatrix[in