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

Solution: Import the 'pyramid' module

# Add the following line to the top of your code
import pyramid

 

For more information:
Python pyramid