Question: Joan had 5 dimes in her bank. She spent 2 of her dimes. How many dimes does she have now ?

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

Answer: 3