>>> from sympy import solveset
>>> from sympy.abc import x
>>> solution = solveset(Eq(2*x, 4))
>>> solution
FiniteSet(2)
>>> list(solution)[0]
2
We need a punchy acronym like "MCVE" for problem statements that don't have any code yet
"I have the string "3 * x = 6", I want the integer 2, how do I do it?" is neither complete nor verifiable but it's a fairly decent description of a problem
Suppose I have num = 6, num is an integer type. And I have a symbolic variable "x", which has a value of 67. I want to assign that value 67 to the variable "num".