replace free variables sympy code example Example: sympy solve equation system sol = solve((eq1, eq2),(x, y)) sol