Thank you, Chris!
Sent from my iPhone
On Apr 7, 2012, at 3:24 PM, Chris Rebert wrote:
> On Sat, Apr 7, 2012 at 2:15 PM, KRB wrote:
>> Hi there,
>>
>> I would like to be able to pass a list of variables to a procedure, and have
>> the output assigned to them.
>
On Sat, 07 Apr 2012 14:15:09 -0700, KRB wrote:
> I would like to be able to pass a list of variables to a procedure, and
> have the output assigned to them.
Use a dictionary or an object.
If the variables are globals (i.e. attributes of the current module), you
can pass the result of g
On Sat, Apr 7, 2012 at 2:15 PM, KRB wrote:
> Hi there,
>
> I would like to be able to pass a list of variables to a procedure, and have
> the output assigned to them.
You cannot pass a variable itself to a function; you can only pass a
variable's value. Which is to say that P
Hi there,
I would like to be able to pass a list of variables to a procedure, and have
the output assigned to them.
For instance:
x=0
y=0
z=0
vars =[x,y,z]
parameters=[1,2,3]
for i in range(1,len(vars)):
*** somefunction that takes the parameter "1", does a computation and as