Skip to content

Introduction to Python Masterclass

The Introduction to Python Masterclass is a hands-on course for beginners covering Python fundamentals, data handling, and visualization. Through interactive Jupyter Notebooks, challenges, and solutions, you’ll build confidence and fluency in Python, providing a strong foundation for further study or use in data analysis and software development.

Two students looking at a desktop screen

The masterclass is divided into two sections: Intro and Data. Each section includes:

  • A walkthrough notebook to explain new concepts
  • A Challenges notebook containing exercises of varying difficulty
  • A Solutions notebook providing example solutions to exercises

Contents

Each tutorial is available as a Jupyter Notebook (.ipynb) file:

  • Intro.ipynb
    • A walkthrough of the fundamentals of Python, including variables, control structures, and user-defined functions
  • IntroChallenges.ipynb
    • Exercises to test your understanding of the material, with tasks of varying difficulty
  • IntroSolutions.ipynb
    • Example solutions to the exercises in IntroChallenges.ipynb
  • Data.ipynb
    • A further walkthrough covering arrays and data visualisation using the matplotlib library
  • DataChallenges.ipynb
    • Exercises designed to reinforce your understanding of arrays, plotting, and Python’s data-handling fundamentals
  • DataSolutions.ipynb
    • Example solutions to the exercises in DataChallenges.ipynb
  • company_sales_data.csv
    • A sample dataset used within the Intro notebooks for demonstration and exercises

Getting started

Option 1: Open the Notebooks in Binder (recommended)

Binder allows you to open and run the notebooks directly in your web browser, meaning there is no installation or setup required. This is the quickest and easiest way to get started.

  • Open Binder in your browser by clicking this link
  • Wait while Binder builds the environment (this may take a minute or two)
  • Once it’s ready, the notebooks will open in an interactive Jupyter environment
  • Select Intro.ipynb to begin
Opening the Intro.ipynb in the Binder display

Opening the Intro​​.ipynb notebook in the interactive Jupyter environment using Binder

If the Binder link isn’t working, you can launch it manually:

  • Visit Binder
  • In the field labelled “GitHub repository name or URL”, paste the following address: https://github.com/olaiya/PythonIntroduction
  • Click Launch. Binder will create the environment automatically
Option 2: Download the Notebooks from GitHub and Open Locally

If you prefer to work on your own computer or already use Jupyter Notebook, you can download the tutorial files directly from the GitHub repository.

  • Go to the PythonIntroduction GitHub repository
  • Download the repository as a ZIP file or clone it using Git
  • Open the files using Jupyter Notebook or JupyterLab

If Jupyter is not yet installed on your computer, installation instructions and downloads can be found here

What next?

Once you have successfully opened the notebooks in your chosen environment, it’s time to get started!

Begin with Intro.ipynb for a guided walkthrough of the key concepts you’ll need for the challenges. When you’re ready, move on to the exercises in IntroChallenges.ipynb — complete as many as you like at your own pace. You can refer to IntroSolutions.ipynb as you go, or test yourself by checking the solutions at the end.

Next, continue with the Data section by working through Data.ipynb, DataChallenges.ipynb, and DataSolutions.ipynb.

This masterclass is designed to be completed entirely at your own pace, so you can revisit sections and progress whenever it suits you.