Course Content
Module 2 – Introduction to Python Programming
In this Introduction to Python module, learners explore Python’s clear, readable syntax and powerful features. Beginning with installation and a simple “Hello, World!” script, you will progress through variables, control flow and functions using step-by-step examples. By the end, you will be equipped to write your own Python programmes, automate routine tasks and tap into an extensive library ecosystem for real-world projects.
0/7
Module 3 – Variables, Data Types and Basic Operations
In the Variables, Data Types and Basic Operations in Python module, learners explore how to store and manage data using variables, master fundamental types such as integers, floats, strings and booleans, and perform arithmetic, comparison and logical operations step by step. Clear explanations, real world examples and hands on exercises guide you through writing and debugging code. By the end of this module, you will be ready to build dynamic Python programs and automate everyday tasks.
0/6
Module 4 – Control Flow – Conditions and Loops
Control flow structures determine the order in which your program’s code executes. With conditional statements, you can make decisions and execute certain code blocks only when specific conditions are met. Loops allow you to repeat actions efficiently without writing redundant code. In this module, we will explore fundamental control flow concepts in Python in a step-by-step manner, similar to Microsoft’s learning curriculum. By the end, you’ll understand how to use if, elif, and else statements (including nested conditions) for decision-making, how truthy and falsy values work in Boolean logic, how to construct for loops (using range() and iterating over collections), how to use while loops along with loop control statements (break and continue), and how to leverage list comprehensions and generator expressions for concise looping. Finally, we’ll apply these concepts in a practical exercise to build an interactive decision-making system. Each section below includes explanations, code examples, and mini-exercises to reinforce the concepts, all formatted for clarity and easy follow-along.
0/8
Module 5 – Functions and Code Organisation
Imagine you need to clean up a messy data set or send a personalised email to each customer. Instead of writing the same steps over and over, you can create a function and call it whenever you need. In this lesson on Functions and Code Organisation, you will learn how to define functions, pass and return information, document your work and group related code into modules for easy reuse and maintenance.
0/3
Introduction to Python Programming (Copy 2)

Lab Activity: Intro to Python

Step 1: Install Python

Objective:

Install the latest version of Python on your system.

step-by-step Instructions:

  1. Visit the official website: https://www.python.org

  2. Download the appropriate installer for your operating system.

  3. Run the installer and check the box for “Add Python to PATH”.

  4. Verify the installation:

    python --version

Step 2: Install and Set Up VS Code

Objective:

Set up a code editor for Python development.

Instructions:

  1. Go to: https://code.visualstudio.com/

  2. Download and install Visual Studio Code.

  3. Open VS Code and install the Python extension from Microsoft.

  4. Create a folder named MyFirstPythonProject and open it in VS Code.

  5. Inside the folder, create a file named hello.py.

Step 3: Run Your First Python Program

Objective:

Write and execute your first Python script.

Instructions:

  1. Open the hello.py file in VS Code.

  2. Write the following code:

    print("Hello, World!")
    
  3. Run the file using:

    • The “Run” button in VS Code OR

    • Terminal command:

      python hello.py

Step 4: Install Python Packages Using pip

Objective:

Use pip to install packages.

Instructions:

  1. Open Command Prompt or Terminal.

  2. Install the requests package:

    python -m pip install requests
    
  3. Verify it is installed:

    pip show requests
    
  4. Write a short script to import and print the version of requests:

    import requests
    print(requests.__version__)