Current Level 0: Python Level - 0
0 / 6 Miles
0 / 6 Assignments
0 / 6 Exams

Mile 2: Setting Up Google Colab / Jupyter Notebook

🎬 YouTube Videos

No YouTube videos available

Check back later for new YouTube content.

📹 Library Videos

Python Mile #2: Why Use Google Collab: Library Video

📚 Content

SECTION 1 WHAT IS GOOGLE COLAB

19 min read

 

Why Use Google Colab?

Google Colab is very popular among students, data scientists, and developers.

Why? Because it makes working with Python, especially for data science and machine learning, much easier sparkles

light bulb Simple Idea

Colab helps you start quickly, collaborate easily, and work on powerful tasks without setup stress.

Why It Stands Out
A browser notebook built for fast learning and powerful experiments.
Google Colab is especially useful when you want to begin coding right away, use strong hardware for AI work, and share your notebook with others.
sparkles No setup rocket Free GPU / TPU people holding hands Team friendly
1

Open Colab in your browser and start immediately.

2

Use powerful tools for Python notebooks and experiments.

3

Share and collaborate like a live document.

What Makes Colab So Useful?
memo
No Installation or Setup Required

You do not need to install Python, Jupyter, or a long list of libraries before you begin.

high voltage
Free GPU and TPU Access

Colab can give you access to powerful hardware for AI and deep learning work.

speech balloon
Easy Collaboration

It works like Google Docs, so you can share notebooks and work together in real time.

file folder
Google Drive Integration

Your notebooks can be stored, saved, and managed through Google Drive easily.

package
Preinstalled Python Libraries

Many useful libraries are already installed, so you can begin immediately.

No setup, just start building.
What You Can Do With It
chart increasing
Numerical calculations

Use NumPy for fast calculations and numerical work.

bar chart
Charts and graphs

Use Matplotlib and Seaborn to visualize your data clearly.

robot
Machine learning

Use TensorFlow and PyTorch to begin AI and machine learning experiments.

light bulb
Final Thought

Colab removes setup friction, so students can focus on learning and building instead of configuring tools.

Smart Way to Remember

Google Colab is built for speed, collaboration, and easy access to powerful Python tools.

It is one of the fastest ways to begin coding in the cloud.


2 min read

What is Google Colab?

  • Think of Google Colab (short for Colaboratory) as a magic notebook in the cloud
  • Usually, if you want to write Python code…
  • You need to install software on your computer

Set up tools

  • Fix errors before even starting 
  • But with Google Colab…
  • You don’t need to install anything

You just:

  • Open your web browser
  • Create a notebook
  • Start coding instantly
  • It’s like using Google Docs…

 but instead of writing text, you write Python code


Why Students Love It

  • No setup required
  • Works on any device
  • Easy to use
  • Perfect for learning and experimenting

Simple Way to Remember

  • Google Colab =
    • Notebook + Python + Cloud
    • All in one place 
Sign up or sign in to rate this section
SECTION 2 WHY USE GOOGLE COLAB

21 min read

 

Why Use Google Colab?

Google Colab is very popular among students, data scientists, and developers.

Why? Because it makes working with Python, especially for data science and machine learning, much easier sparkles

bulb Simple Idea

Colab helps you start quickly, collaborate easily, and work on powerful tasks without setup stress.

Why It Stands Out
A browser notebook built for fast learning and powerful experiments.
Google Colab is especially useful when you want to begin coding right away, use strong hardware for AI work, and share your notebook with others.
sparkles No setup rocket Free GPU / TPU people holding hands Team friendly
1

Open Colab in your browser and start immediately.

2

Use powerful tools for Python notebooks and experiments.

3

Share and collaborate like a live document.

What Makes Colab So Useful?
memo
No Installation or Setup Required

You do not need to install Python, Jupyter, or a long list of libraries before you begin.

high voltage
Free GPU and TPU Access

Colab can give you access to powerful hardware for AI and deep learning work.

speech balloon
Easy Collaboration

It works like Google Docs, so you can share notebooks and work together in real time.

file folder
Google Drive Integration

Your notebooks can be stored, saved, and managed through Google Drive easily.

package
Preinstalled Python Libraries

Many useful libraries are already installed, so you can begin immediately.

No setup, just start building.
What You Can Do With It
chart increasing
Numerical calculations

Use NumPy for fast calculations and numerical work.

bar chart
Charts and graphs

Use Matplotlib and Seaborn to visualize your data clearly.

robot
Machine learning

Use TensorFlow and PyTorch to begin AI and machine learning experiments.

light bulb
Final Thought

Colab removes setup friction, so students can focus on learning and building instead of configuring tools.

Smart Way to Remember

Google Colab is built for speed, collaboration, and easy access to powerful Python tools.

It is one of the fastest ways to begin coding in the cloud.


4 min read

Google Colab

  • It is popular among students, data scientists, and developers because it makes working with Python especially for data science and machine learning much easier.
  • It removes the need to install anything on your computer and gives you free access to high-performance computing power through the cloud.

Below are the main reasons why people use Google Colab, explained in detail.

1. No Installation or Setup Required

  • Normally, to run Python notebooks, you need to install Python, Jupyter, and several libraries.
  • With Google Colab, you don’t need to install anything.
  • You just open a web browser, go to https://colab.research.google.com, and start coding.
  • It works on any operating system --> Windows, macOS, or Linux.
  • This makes it great for beginners or classrooms because everyone can start coding instantly.

2. Free GPU and TPU Access

  • GPUs (Graphics Processing Units) and TPUs (Tensor Processing Units) are powerful hardware used for training AI and deep learning models.
  • Normally, you would need expensive computers or cloud servers for this.
  • Google Colab gives you free access to GPUs and TPUs.
  • You can enable them by going to.

 Runtime → Change runtime type → Hardware accelerator → GPU or TPU.
This is useful for training neural networks, image recognition, or large datasets that would be slow on a normal CPU.

3. Easy Collaboration

  • Google Colab notebooks work just like Google Docs.
  • You can share your notebook with others using a link.
  • Multiple people can view or edit the same notebook in real time.
  • You can comment, suggest changes, or review others’ code.
  • This makes it very convenient for team projects, tutorials, or classroom teaching.

4. Integration with Google Drive

  • Colab is directly connected to your Google Drive.
  • When you create or save a notebook, it’s stored in your Drive automatically.
  • You can also import and export files (CSV, Excel, images, etc.) from Drive easily.

5. Preinstalled Python Libraries

  • Colab comes with many common data science and AI libraries already installed:
  • NumPy - for numerical calculations
  • Pandas - for working with data tables
  • Matplotlib & Seaborn - for charts and graphs
  • TensorFlow & PyTorch - for machine learning and deep learning
Sign up or sign in to rate this section
SECTION 3 HOW TO ACCESS GOOGLE COLAB

22 min read

 

How to Start Using Google Colab

You can start using Google Colab in just a few minutes clock

Let’s see how backhand index pointing down

sparkles Quick Start

Google Colab makes it easy to begin from a browser without a long setup process.

Three Ways to Begin
Choose the path that feels easiest and start coding right away.
Whether you go directly to Colab, open it from Google Drive, or load an existing notebook, the goal is the same: get to coding quickly.
sparkles Direct access file folder Google Drive laptop Start coding
1

Open Colab and create or open a notebook.

2

Use your Google account to save and sync your work.

3

Start coding instantly without extra setup.

Option 1: Direct Access
globe showing Europe-Africa
Go to Colab

Visit https://colab.research.google.com/ in your browser and sign in with your Google account.

notebook
Create a notebook

Click File → New notebook and begin coding immediately.

Option 2: From Google Drive
file folder
Open Drive

Go to Google Drive, then click New → More → Google Colaboratory.

floppy disk
Saved automatically

A new notebook is created and saved directly in your Drive automatically.

Everything stays organized in your Drive.
Option 3: Open Existing Notebook
file folder
Google Drive

Open your saved notebooks from Drive.

link
GitHub

Load notebooks directly from GitHub links.

outbox tray
Upload

Bring a notebook from your computer into Colab.

light bulb
Final Thought

No setup, no waiting. Just open, click, and start coding.

Smart Way to Remember

Direct access, Drive, or an existing notebook all lead to the same result: a fast start in Colab.

The easiest way is the one that gets you coding quickly.


1 min read

You can start using Google Colab in minutes here’s how

Option 1: Direct Access

  • Go to https://colab.research.google.com/
  • Sign in using your Google account.
  • Click File → New notebook.
  • Start coding immediately in the new notebook.

Option 2: From Google Drive

  • Open Google Drive
  • Click New → More → Google Colaboratory.
  • This creates and opens a Colab notebook saved in your Drive.

Option 3: Open Existing Notebook
In Colab, go to:

  • File → Open notebook, then choose:
  • Google Drive (your saved notebooks)
  • GitHub (open notebooks directly from GitHub)
  • Upload (from your local machine)
Sign up or sign in to rate this section
SECTION 4 WRITING AND RUNNING YOUR FIRST PYTHON PROGRAM IN GOOGLE COLAB

5 min read

After accessing Google Colab, the next step is to create a notebook and start coding.
A **notebook** is a document that can contain Python code, explanations, and the results of your programs.

1. Create and rename a notebook

Create a new notebook. Give it a meaningful name, such as **My First Python Program**, so you can easily identify it later.
A notebook file uses the **`.ipynb`** extension, which stands for *IPython Notebook*.

2. Understand cells

A Colab notebook contains two main types of cells:

|   Cell type   |                             Purpose                    |
| ------------- | ------------------------------------------------------ |
| **Code cell** | Write and run Python code.                             |
| **Text cell** | Add notes, headings, and explanations about your code. |

Using both helps you keep your work organized.
For example, you can introduce a task in a text cell and solve it in the code cell below.


3. Write your first program

Enter this code into a code cell:

print("Hello, World!")
print("Welcome to Python programming!")

The `print()` function displays information. Here, the text inside quotation marks is displayed as output.


4. Run the code

Click the ** play button** beside the cell, or press **Shift + Enter**.

The output appears below the cell:

Hello, World!
Welcome to Python programming!

You can change the text and run the cell again to see a different result.


5. Use Python for calculations

In another code cell, enter:

print(10 + 5)
print(10 - 5)
print(10 * 5)
print(10 / 5)

Notice that numbers used in calculations do not need quotation marks.
Compare:

print("10 + 5")
print(10 + 5)

Explanation

The first line displays text.
The second calculates the answer.


6. Run cells in the correct order

You can create a variable in one cell:

name = "Prem"

Then use it in another cell:

print("Hello,", name)

Output:

```text
Hello, Prem
```

Run the cell that creates `name` first. If you use the variable before creating it, Python raises a `NameError`.
**Remember:** The order in which you run cells matters. Editing a cell does not update its result until you run it again.


7. Understand your notebook and its runtime

The **runtime** is the computing environment that executes your code and temporarily holds variables.
Saving your notebook preserves its code and any saved outputs. However, if the runtime resets, its variables are lost. You must rerun the relevant cells to recreate them.


Practice activity
Create a notebook with:

  • A text cell titled **About Me**.
  • A code cell that prints your name and your reason for learning Python.
  • Another code cell that calculates and prints `25 + 15`.

First code cell:

print("My name is Prem.")
print("I am learning Python to build useful applications.")

Second code cell:

print(25 + 15)

 


24 min read

 

Creating & Running Your First Notebook

After accessing Google Colab, the next step is to create a notebook and start coding.

A notebook is a document that can contain Python code, explanations, and the results of your programs.

bulb Simple Idea

Create a new notebook and give it a meaningful name, like My First Python Program, so it's easy to find later. Notebook files use the .ipynb extension — short for IPython Notebook.

Two Kinds Of Cells
Code cells run Python. Text cells explain what it does.
A Colab notebook mixes both, so you can introduce a task in a text cell and solve it in the code cell right below it.
laptop Code cell memo Text cell floppy disk .ipynb
1

Create and rename your notebook.

2

Add code cells and text cells to organize your work.

3

Run a cell with the play button, or press Shift + Enter.

The Two Cell Types
laptop
Code Cell

Write and run Python code — the cell executes when you run it, and the result appears right below.

memo
Text Cell

Add notes, headings, and explanations about your code — nothing here gets executed.

Combine both to keep your notebook organized and easy to follow.
Write & Run Your First Code

Enter this code into a code cell:

print("Hello, World!")
print("Welcome to Python programming!")

 

The print() function displays information — the text inside quotation marks appears exactly as written. Click the play button beside the cell, or press Shift + Enter, to run it.

Hello, World! Welcome to Python programming!

 

Numbers Don't Need Quotes
print(10 + 5)
print(10 - 5)
print(10 * 5)
print(10 / 5)

 

Numbers used in calculations do not need quotation marks. Compare:

memo
Displays Text
print("10 + 5")
10 + 5
input numbers
Calculates The Answer
print(10 + 5)
15
Cell Order Matters

You can create a variable in one cell:

name = "Prem"

 

Then use it in another cell:

print("Hello,", name)

 

Hello, Prem

 

Run the cell that creates name first — if you use the variable before creating it, Python raises a NameError.

light bulb
Remember

The order in which you run cells matters, not the order they appear on the page. Editing a cell does not update its result until you run it again.

Practice Activity

Create a notebook with a text cell titled About Me, a code cell that prints your name and your reason for learning Python, and another code cell that calculates and prints 25 + 15.

print("My name is Prem.")
print("I am learning Python to build useful applications.
target
First Code Cell
print("My name is Prem.")
print("I am learning Python to build useful applications.")
My name is Prem. I am learning Python to build useful applications.

 

input numbers
Second Code Cell
print(25 + 15)
40
Smart Way to Remember

A notebook mixes code, notes, and results in one place — and every result depends on the order cells were run, not the order they appear.

Master cells and run-order, and you're ready to write real Python programs in Colab.

Sign up or sign in to rate this section

📝 Assignment

Available Assignments
Assignment Pass Mark Duration Actions
Getting Started with Google Colab
70% 01:00:00

📊 Exam

Available Exams
Exam Pass Mark Duration Questions Actions
Setting Up Google Colab / Jupyter Notebook — Knowledge Check Exam
70% 00:30:00 5

💬 Comments & Discussion

Sign up free or sign in to post a comment
Sign up free or sign in
No comments yet

Be the first to share your thoughts!