#This prints the derivative of a function
import sympy as sym
x = sym.Symbol('x')
function = x ** 4 + 7 * x ** 3 + 8
derivitive = sym.diff(function)
print(derivitive)
from sympy import Symbol, Derivative
x= Symbol('x')
function= x**4 + 7*x**3 + 8
deriv= Derivative(function, x)
deriv.doit().subs({x:4})