Question: Sam grew 4 watermelons, but the rabbits ate 3 watermelons. How many watermelons does Sam have left ?

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

Answer: 1