Run Python in Google Colab
Open a free notebook in your browser and run your first line.
🎬 Video version coming soon — read it now
You don't need to install anything. Google Colab runs Python in your browser for free, on any laptop, and even on a phone in a pinch.
Open your first notebook
- Go to colab.research.google.com and sign in with your Google account.
- Click New notebook.
- Click inside the grey box (a code cell) and type:
print("Namaskaram, Vizag!")- Press Shift + Enter. The output appears under the cell.
That's it. You've run a Python program.
Cells: the building blocks
- Code cells hold Python. Run one with Shift + Enter.
- Text cells hold notes. Use them to explain what your code does.
- Cells run in the order you run them, not the order they sit on the page. If something looks strange, use Runtime → Restart and run all.
Python is also a calculator
Try this in a new cell:
250 * 4In Colab, the last line of a cell shows its value automatically. That's handy for quick checks.
Save your work
Notebooks save to your Google Drive automatically, in a folder called Colab Notebooks. Rename yours to something like python-basics.ipynb by clicking the title at the top.
Tip: Make one notebook per course and one text cell per lesson. By the end you'll have your own personal Python notes.
In one line
Google Colab lets you write and run Python in your browser: type in a cell, press Shift + Enter.
Saved on this device. Sign in to keep progress everywhere.
Share with a friend