Re: Need array help

2006-10-06 Thread Larry Bates
Robert Kern wrote: > Larry Bates wrote: > >> If you want to >> do vector math or matrix-type calculations look at the >> array module. > > The array module in the standard library does not provide such > capabilities. If you need them, look at numpy. > > http://numpy.scipy.org > I stand corre

Re: Need array help

2006-10-06 Thread Paul McGuire
"Marion Long Jr" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] >I am switching from microsoft visual basic programming to python >programming. Also, in anticipation of one of the most FA'ed Q's among VB->Python migrators, you must always include the parens after a function name to

Re: Need array help

2006-10-06 Thread Robert Kern
Larry Bates wrote: > If you want to > do vector math or matrix-type calculations look at the > array module. The array module in the standard library does not provide such capabilities. If you need them, look at numpy. http://numpy.scipy.org -- Robert Kern "I have come to believe that the

Re: Need array help

2006-10-06 Thread John Henry
Others posted answer to your question. If you are serious about programming in Python, I highly recommend that you don't try to think in terms of "I did this in Visual Basic, how do I do this in Python". You'll end up with Python code that are nothing but a VB look alike. As recommended by oth

Re: Need array help

2006-10-06 Thread Larry Bates
Marion Long Jr wrote: > I am switching from microsoft visual basic programming to python > programming. In microsoft > visual basic you can Dim a variable so that you can add variables by > changing the number > on the end of the variable as in the following example; > > Dim acct(100) > > numof

Re: Need array help

2006-10-06 Thread [EMAIL PROTECTED]
Marion, I think you should start with the tutorials. To access an array in Python, use brackets not parens. so, instead of "acctfile(ct) = data" try "acctfile[ct] = data". The tutorials are excellent and if you are learning from vb, you can go through them pretty quickly. On Oct 6, 10:25 am, "Ma

Need array help

2006-10-06 Thread Marion Long Jr
I am switching from microsoft visual basic programming to python programming. In microsoft visual basic you can Dim a variable so that you can add variables by changing the number on the end of the variable as in the following example; Dim acct(100) numoffiles=4 data=10 ct=1 while ct <> numoffi