Introduction to Programming module (PH21002)

Learn to code in Python and MATLAB, two of the most in-demand tools for science, engineering, and data-driven industries

Credits
20
Module code
PH21002
Level
2
Semester
Semester 1
School
School of Science and Engineering
Discipline
Physics

Whether you're dreaming of building software, simulating scientific systems, or solving real-world problems, programming is one of the most valuable skills you can learn. In this practical module, you’ll get hands-on experience with Python and MATLAB. These are two of the most widely used programming tools in science and industry.

Python is the go-to language for data science, machine learning, AI, and scientific computing. MATLAB is used around the world for engineering simulations, signal processing, and numerical modelling. In this module, you’ll learn the core skills to use both of them confidently. 

You’ll write your own scripts and programs to solve real problems, working on everything from loops and logic to plotting, data handling, and mathematical modelling. By the end, you won’t just understand how programming works – you’ll be able to use it as a powerful tool in your degree and your future career. 

What you will learn 

In this module, you will: 

  • learn the structure and syntax of Python and MATLAB 
  • write your own programs to solve physics, engineering, and maths problems 
  • use Python packages like NumPy and SciPy for scientific computing 
  • work with files, loops, logic, functions, and data structures 

By the end of this module, you will be able to: 

  • develop, test, and debug working code in both Python and MATLAB 
  • build programs to automate tasks, solve equations, and analyse data 
  • apply your programming skills to real-world scientific and technical problems 

Assignments / assessment

  • Coursework assignments and quizzes (40%) 
  • Final written exam (60%) 

Teaching methods / timetable

Your learning will be supported through interactive IT workshops. 

Courses

This module is available on the following courses: