How to Solve NameError: name 'wolframalpha' is not defined

Solution: Import the 'wolframalpha' module

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

import wolframalpha

 

For more information:
Python wolframalpha