How to Solve NameError: name 'Function' is not defined -- sympy

Solution: Import the 'Function' module

To Solve the error, add the following line to the top of your code.

from sympy import Function

 

For more information:
Python sympy Function