The Wayback Machine - https://web.archive.org/web/20230222035945/https://www.geeksforgeeks.org/how-to-run-python-code-on-google-colaboratory/
Skip to content
Related Articles
Open in App
Not now

Related Articles

How to run Python code on Google Colaboratory

Improve Article
Save Article
  • Last Updated : 14 Feb, 2023
Improve Article
Save Article

Prerequisite: How to use Google Colab Google provides Jupyter Notebook like interface to run Python code on online Virtual Machines. In this article, we will see how to run simple Python code on Google Colab. Step #1: Open https://colab.research.google.com/ Step #2: Select New Python3 Notebook Step #3: Start Typing code into the code cells. Import all necessary libraries. Step #4: To add new cell, click on Insert->Code Cell Step #5: To run a particular cell, select the cell and press Ctrl + ENTER keys.

Code cells under process

Output after successful run

My Personal Notes arrow_drop_up
Related Articles

Start Your Coding Journey Now!