import google drive colab code example
Example 1: connect google drive to colab
from google.colab import drive
drive.mount("/content/gdrive")
Example 2: download google drive file colab
!gdown --id yourFileIdHere
Example 3: google colab upload a file
from google.colab import files
files.upload()