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
"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
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
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
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
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
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