List of variables as function arguments [closed]

asked 2020-06-25 13:05:25 +0200

anonymous user


I would like to define a function that takes an arbitrary long list of variables as input and some complicated expression of my variables as my output, but I just don't seem to be able to make it work.

Something along the line of:

long_list_of_variables = [x_1, x_2,x_3]

But with much more variables.

I've tried different variations of this but I always seem to end up with the 'can't assign to function call'-error. Are there any way to achieve what I'm trying to do?

edit retag flag offensive reopen merge delete

Closed for the following reason duplicate question by Juanjo
close date 2020-06-28 03:12:11.456670