Jupyter notebooks allow you to combine executable code and rich text in a single document, along with images, HTML, LaTeX and more. When you create your own Colab notebooks, they are stored in your Google Drive account, so make sure you are logged in to your Google account.
To create a new Jupyter notebook you can use the Google File menu.
First go to drive.google.com and create a Google Colaboratory document (Click New). Alternatively, click here to create a new notebook.
Give your notebook a name.
Click on “+ Text” and write your title: “My First Notebook.” Next, click on “+ Code” and write some computer code. For example,
Now hit the play button to the left of your code to execute it, and the output will be generated below.