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

Solution: Import the 'citydb' module

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

 

For more information:
Python citydb