sympy solve 2 linear equations code example Example: sympy solve equation system sol = solve((eq1, eq2),(x, y)) sol