On Sep 28, 10:55 am, Tim Bradshaw wrote:
> There's a large existing body of knowledge on dimensional analysis
> (it's a very important tool for physics, for instance), and obviously
> the answer is to do whatever it does. Raising to any power is fine, I
> think (but transcendental functions, for
How about IDLE? It's a nice tool for the Python programmer. I've tried
lots of IDEs, but when it comes down to it, on small-to-medium jobs I
am be very productive indeed using IDLE...
--v
--
http://mail.python.org/mailman/listinfo/python-list
Another way to do it is using a dict with keys that are tuples:
>>> arr = {}
>>> arr[0,0] = 'a1'
>>> arr[0,1] = 'a2'
>>> arr[1,0] = 'b1'
>>> arr[1,1] = 'b2'
>>> arr[2,0] = 'c1'
>>> arr[2,1] = 'c2'
>>> for j in range(3):
... for i in range(2):
... print arr[j,i], ' ',
... print
...