LSMA

LONDON SCHOOL OF MULTIOMICS & AI

LSMA

LONDON SCHOOL OF MULTIOMICS & AI

Free course

Free course

Introduction to Python

0 of 41 lessons

Free course

4 modules · 31 lessons · no experience needed · opens December 2026

Introduction to Python

Introduction to Python

Introduction to Python

Learn Python from the first line, then make figures that tell the truth, write and test code with AI assistants safely, and build machine learning models you can trust.

About this course

Learn Python for the life sciences from the first line. You work with biological data in pandas and Biopython, make figures that tell the truth, learn to write, review and test code with AI assistants safely and build machine learning models you can trust.

Who it is for: Scientists and students who want to automate their analysis or move into data science and machine learning. No coding experience needed.

Free, by applicationSend us your CV and a short cover letter. Our team reviews every application and opens the lessons when it is approved. Diploma students get every free course automatically. Your progress is saved to your account, and when you finish every lesson you can claim a certificate of completion.
Apply

By the end you can

  • Write Python with strings, lists, functions, modules and error handling
  • Load, clean and combine data with pandas, and read sequences with Biopython
  • Build honest, colour-blind-safe, publication-ready figures with matplotlib and seaborn
  • Prompt, review, test and debug AI-written code, and keep data and secrets safe
  • Train and evaluate classifiers and regression models without data leakage
  • Tune, interpret and report a model so others can trust it

How this course works

Free and self-paced. Use Google Colab in your browser, or Python on your own computer. Every lesson has code to copy, the output it prints, a worked example and three questions. Each module ends with a guided project that you check yourself; nothing is submitted. In Module 3, where a lesson shows “the kind of code an assistant might return”, it is an example we wrote to show typical mistakes.

What you need

What you need for each module

ModuleRuns inSet up once
Module 1Google Colab, or Python and JupyterExplained in Module 1, lesson 1
Module 2Colab or Jupyterpandas, matplotlib and seaborn (already in Colab)
Module 3Colab or Jupyter, and any AI assistantpip install pytest
Module 4Colab or Jupyterscikit-learn (already in Colab); both datasets ship with it
Further readingOptional papers, guides and a glossary for each of the 4 modules, in one document. Read online or download the PDF.
Open
Predicted subtypeTrue subtypeLuminal ALuminal ALuminal BLuminal BBasal-likeBasal-like466153820341Accuracy88%125 of 142tumours
A confusion matrix, one of the first things you read in Module 4. Illustrative data.

Your route: Foundations to Advanced

Each module builds on the one before and is complete on its own, so you can stop after any module and come back later.

Foundations

Module 1

Jupyter, strings and lists, pandas, cleaning data, figures, Biopython and your own module.

7 lessons + project · GitHub essentials

Intermediate

Module 2

Choosing charts, uncertainty, colour, honest axes, multi-panel and omics figures, export.

8 lessons + project

Intermediate

Module 3

Prompting, reviewing, testing and debugging AI-written code, and using it responsibly.

8 lessons + project

Advanced

Module 4

Classifiers, evaluation, cross-validation, trees, regression, clustering and tuning.

8 lessons + project

Advanced

Module 5

Your own question, public data and an honest report: the final project of the course, required for the certificate.

Final project · required for the certificate

Ask LSMA