answered 3 years ago
Use p.subs({x:x**2}) rather than p.subs(x=x**2).
p.subs({x:x**2})
p.subs(x=x**2)