0
I am using the Python Sympy Library, however, I did not find a way to calculate the result of a function using it, IE, I have my function that will be typed by the user, and the value of x that will also be typed by him. ex: function = x + 10 and my value of x = 2. I want the return of 12, but this is what I did not find how to do in your documentation. My Attempt:
from sympy import *
E = input("função ? ")
x = int(input("Digite o valor de x "))
SimboloX = ('x')
R = solve(function(E,x),SimboloX)
print(R)