Question: Joan's cat had 8 kittens. She gave 2 to her friends.  How many kittens does she have now ?

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

Answer: 6