New to Python
Diez B. Roggisch
deets at nospam.web.de
Mon Mar 12 11:04:05 CET 2007
Alberto Vieira Ferreira Monteiro wrote:
> Hi, I am new to Python, how stupid can be the questions I ask?
> For example, how can I add (mathematically) two tuples?
> x = (1,2)
> y = (3,4)
> How can I get z = (1 + 3, 2 + 4) ?
Others have shown you ways to accomplish this, and stated correctly that
tuples aren't vectors.
You can also go and look into Numpy, the python numerical package. That
let's you do lots of operations on vectors and matrices.
More information about the Python-list