0

Suppose I have a list l=[A,B,C,D] and a pre-defined funcion (I am using sympy.solve_linear_system(matrix,A,B,C,D). I want to evaluate the function without writing in A,B,C,D. I want to do it in terms of the list. Is this possible?

When I use Unpack (*list) it gives me A B C D and not A, B, C, D and the function has an error.

Ibrahim
  • 798
  • 6
  • 26
  • 1
    use unpacking, ie `*`. `sympy.solve_linear_system(matrix, *l)` – Ibrahim Apr 17 '22 at 04:49
  • 1
    "When I use Unpack (*list) it gives me A B C D not A, B, C, D and the function ahs an error" Welcome to Stack Overflow. Please read [ask] and https://ericlippert.com/2014/03/05/how-to-debug-small-programs/ and https://meta.stackoverflow.com/questions/359146 and https://stackoverflow.com/help/minimal-reproducible-example. We can only possibly help with code that we actually see, and we can only help understand errors that we actually see. – Karl Knechtel Apr 17 '22 at 05:00
  • @JakeMcNaughton please add the full traceback and the code which causes this error, so it can be reproduced. [eg](https://stackoverflow.com/help/minimal-reproducible-example) – Ibrahim Apr 17 '22 at 05:09

0 Answers0