Question: Mike has 8 orange marbles, he gave Sam 4 of the marbles. How many orange marbles does he now have ?

Solution program:
from sympy import symbols, solve
x = symbols("x")
answer = solve(8-4-x)
print(answer)

Answer: 4