How do I receive an array (like numpy ones) into a function? Let's say the array a = [[2],[3]]
and the function f
. Tuples works like this:
def f((a ,b)):
print a * b
f((2,3))
But how is it with arrays?
def f(#here):
print a*b
f([[2],[3]])
SyntaxError
in python3.x. I would advise moving away from using that construct. – mgilson May 21 '13 at 1:56