No installs, no setup headaches. Google Colab lets you write and run Python straight from your browser โ this is the fastest way to start coding for this course.
Google Colaboratory (Colab) is a free, cloud-hosted Jupyter notebook environment. It runs entirely in your browser, requires zero installation, and comes with Python already set up โ including popular libraries like numpy, pandas, and matplotlib. Your notebooks are saved directly to your Google Drive.
All you need is a Google account and a browser. It works on Windows, Mac, Linux, and even Chromebooks.
colab.research.google.com in your browser and sign in with your Google account.
File โ New notebook (or hit "New Notebook" on the welcome screen). A blank notebook opens with one empty code cell.
Untitled0.ipynb) and give it a meaningful name, e.g. day1_print_function.ipynb.
print("Hello, Colab!").
Shift + Enter (or click the โถ play button on the left of the cell) to execute it. The output appears right below the cell.
+ Code at the top (or hover below a cell) to add new code cells. Use + Text to add notes/markdown between code blocks.
Colab Notebooks. You can also force-save with Ctrl/Cmd + S.
Type this into a cell and run it with Shift + Enter:
print("Hello, World!")
print("Welcome to Python with Dutta")
# -> Hello, World!
# -> Welcome to Python with Dutta
| Action | Shortcut |
|---|---|
| Run current cell | Shift + Enter |
| Run cell and insert new one below | Alt + Enter |
| Add a code cell below | Ctrl/Cmd + M B |
| Delete current cell | Ctrl/Cmd + M D |
| Save notebook | Ctrl/Cmd + S |
Most libraries you'll need are pre-installed. If you ever need one that isn't, install it directly from a code cell using !pip:
!pip install some-package
The ! tells Colab to run the command as a shell command instead of Python code.
Shift + Enter runs a cell and moves to the next one โ your main workflow shortcut.Runtime โ Reconnect).Google Colab is a free, browser-based Python environment โ go to colab.research.google.com, sign in with your Google account, create a new notebook, and start writing code in cells. Run a cell with Shift + Enter. Notebooks autosave to your Google Drive, and you can install any extra package with !pip install package-name.