Python Programming
Python is the language every data science workflow runs on. This module builds real programming fluency — syntax, data structures and the NumPy/Pandas libraries — before any statistical modelling is introduced.
What You Will Learn
A detailed, industry-aligned breakdown of every topic covered in this module.
- Python syntax, data types & control flow
- Functions, modules & OOP basics
- Lists, dictionaries, tuples & sets
- File handling & exception handling
- NumPy for numerical computing
- Pandas for data manipulation
- Working with virtual environments
- Writing clean, reusable Python code
Tools You Will Use
Hands-on time with the same tools used by working data analysts and data scientists today.
Python
Core programming language used across every module, from statistics to machine learning.
Jupyter Notebook
Interactive notebook environment used for data exploration, analysis and model prototyping.
NumPy
Numerical computing library used for array operations and mathematical computation in data science.
Pandas
Data manipulation library used to clean, transform and analyse structured datasets.
VS Code
Primary code editor used for writing, debugging and testing Python and data science code.
Hands-On Labs
Production-style data science lab scenarios, built using real, messy datasets.
Write Python programs using core data structures, functions and control flow.
Manipulate and clean tabular data using Pandas DataFrames.
Perform numerical computations on arrays using NumPy.
Handle files and exceptions in a small Python data-processing script.
Set up an isolated virtual environment for a data science project.
Assessment
Knowledge Assessment
Quiz covering Python fundamentals, OOP basics and core NumPy/Pandas operations.
Practical Evaluation
Students must write a Python script that loads, cleans and summarises a real dataset using Pandas and NumPy.
Projects
Industry-style deliverables added directly to your project portfolio.
Python Data Processing Script
Build a Python script that loads, cleans and summarises a real-world dataset using NumPy and Pandas.
What This Module Builds
Students gain solid programming fluency in Python, the core language used throughout data science and machine learning.
Questions about Python Programming
Do I need coding experience to start this module?
No. The module starts with Python syntax, data types and control flow, then moves on to functions, data structures and basic object-oriented programming. It runs for 3 weeks (30 hours) after the mathematics module, which gives beginners time to practise.
How much of the module is about NumPy and Pandas?
The second half. Once the core language is in place, you use NumPy for array calculations and Pandas DataFrames to load, clean and summarise tabular data. Both libraries come back in nearly every later module, so this is where they are taught properly.
Which tools will I set up?
Python, Jupyter Notebook for exploring data, VS Code as the main editor, and a separate virtual environment for each project so library versions don't clash. Setting up an isolated environment is one of the module's labs.
What is the project for this module?
A Python data-processing script that loads a real-world dataset, cleans it and produces a summary using Pandas and NumPy. The practical evaluation asks you to write a script like this on your own.
Is this the same Python module as in the AI & ML course?
No. The AI & ML course teaches Python with a focus on backend development and AI applications. This module is built for data work: data structures, file handling, NumPy and Pandas, leading into data wrangling, statistics and machine learning.
