Question: Mary had 8 potatoes in the garden. The rabbits ate 3 of the potatoes. How many potatoes does Mary now have ?

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

Answer: 5