import zipfile from google.colab import drive drive.mount('/content/drive') zip_file_path = '/content/drive/MyDrive/Dataset.zip' extract_path = '/content/extracted_data' try: with zipfile.ZipFile(zip_file_path, 'r') as zip_ref: zip_ref.extractall(extract_path) print(f"Successfully extracted data to {extract_path}") except Exception as e: print(f"An unexpected error occurred: {e}")