LSMA

LONDON SCHOOL OF MULTIOMICS & AI

Free course

Free course

Introduction to Python

0 of 35 lessons

Free course

4 modules · 31 lessons + 4 projects · no experience needed · by application · 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, and the course files

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
Course filesDownload these and upload them to Colab (folder icon › Upload), or save them next to your notebook.
airway_samples.csvModule 1 · the airway sample sheet: 8 samples, donor and treatmentairway_samples_messy.csvModule 1 · the same sheet with deliberate errorspractice_sequences.fastaModules 1 and 3 · four short practice sequences (not real genes)toothgrowth.csvModule 2 · tooth growth in 60 guinea pigs given vitamin Cbirthweight.csvModule 2 · 189 births: birth weight, mother's weight and age, smokingexpression_example.csvModule 2 · simulated log2 expression: 30 genes, 8 samplesde_results_example.csvModule 2 · simulated differential expression results for 3,000 genes
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.

Ask BioTutor

Create a free website with Framer, the website builder loved by startups, designers and agencies.