Your First 30 Minutes
One aim: get you running real Python in a browser tab, with nothing installed.
You do not need to understand everything you type. You need to see that it works and that you cannot break anything.
This is the same sequence used live in class.
Nothing to install
Go to colab.research.google.com, sign in with a Google account, and click New notebook.
That is the setup. Colab runs Python on Google's machine, in your browser. It saves to your Drive automatically, and it is free.
Rename the notebook Python Practice. You will use it for the rest of this tutorial.
1. Hello World
Type this into the cell and press Shift + Enter:
print("Hello World")The first run takes a few seconds — Colab is starting a machine for you. After that it is instant.
Hello WorldThat is a working Python program. Everything else is more of this.
2. A variable
Click + Code for a new cell.
name = "Sridhar"
print(name)Put your own name in. Run it.
name is a placeholder. It holds a value, and the value can change. print(name) shows whatever is inside it.
No semicolon at the end. Python does not want one.
3. A decision
number = 10
if number > 5:
print("number is greater than 5")Type it rather than pasting. Two things to notice:
The colon. After if number > 5 there is a :. Miss it and you get a syntax error.
The tab appears by itself. Press Enter after the colon and Colab indents for you. Leave it. That indentation is how Python knows which lines belong to the if.
4. A list, and a loop
students = ["Amit", "Sara", "Akhil"]
for student in students:
print(student)students is a list — one placeholder holding several values. Java's ArrayList, C#'s List<T>. Python has no separate array and array-list. Just list.
Two errors people hit on this exact cell:
Printwith a capital P fails. It isprint.- A semicolon after
in students. You want a colon.
5. A shortcut
print(*range(10))0 1 2 3 4 5 6 7 8 9range(10) gives 0 to 9 — it stops before the number. The * spreads them out.
Do not memorise that. Which brings us to the point.
6. Now stop typing
New cell. Instead of typing, click Generate with AI and write plain English:
print 0 to 10Enter, wait, then Accept and Run.
It writes the code. You did not need to remember range, or the *, or anything else.
This is the answer to "how am I supposed to remember all this syntax?" You are not. You describe what you want.
One exception: if someone is interviewing you as a developer, you will need it in your head. To build agents, you will not.
7. Something that feels like magic
New cell, Generate with AI, and ask for something ambitious:
What is the projected market for AI agents from 2025 to 2030?
Show a plot with investments, projected cost of AI for a given
capability, and the projected number of AI jobs. Make it a clear
visual plot.Accept and run. You get a real chart, built with matplotlib and pandas, without writing a line.
If the model refuses, switch models in the dropdown and try again. In class the older model gave up outright and the newer one produced the whole thing.
That is worth learning early: when vibe coding fails, the model is often the variable, not you.
What you have done
In half an hour: run Python with nothing installed, used a variable, a condition, a list and a loop, met indentation and case-sensitivity, and generated a working chart from a sentence.
Where next
- Defining, Calling And Blocks — why a function sometimes produces nothing
- Reading An Error Message — for the first time you see red text
- Variables and types — the start of the six-page path
- Setting Up — Antigravity, for when you move off Colab
Practise this
- Redo the sequence in your own notebook, typing rather than pasting.
- Swap the students for three of your colleagues.
- Change
numberto 3 and predict the output before running. - Ask Generate with AI for something from your own work.