How to Solve NameError: name 'Mailchimp' is not defined -- mailchimp

Solution: Import the 'Mailchimp' module

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

from mailchimp import Mailchimp

 

For more information:
Python mailchimp Mailchimp