How to Solve NameError: name 'summary' is not defined -- summary

Solution: Import the 'summary' module

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

from summary import summary

 

For more information:
Python summary summary