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

Solution: Import the 'docopt' module

# Add the following line to the top of your code
from docopt import docopt

 

For more information:
docopt docopt