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

Solution: Import the 'Symbol' module

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

from sympy import Symbol

 

For more information:
Python sympy Symbol