sustituir valor simblico por valor real em uma utao python

print(y.subs(x, 41))  # 42
Homely Hoopoe