How to Solve NameError: name 'drive' is not defined -- google

Solution: Import the 'drive' module

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

from google.colab import drive

 

For more information:
Python google drive