Learn Python by exploring biology.

Start with your first line of code and progress toward analyzing DNA, proteins, and biological data — directly in your browser.

No prior experience needed · Runs entirely in your browser.

main.py
Python ready
$ python main.py
ATGC
4

Learn by doing

Read a short idea, predict what the code does, write it, run it instantly, and understand it.

Read
Predict
Code
Run
Understand

From Python to biology

A single path from your first print to analyzing DNA and proteins.

print("Hello")
variables
strings
"ATGCGT"
DNA analysis
Biopython

print("Hello") → variables → strings → "ATGCGT" → DNA analysis → Biopython

Course curriculum

0. Welcome to Programming
  • 0.1 · What is programming?
  • 0.2 · What is Python?
  • 0.3 · How this course works
  • + 6 more
1. Your First Python Programs
  • 1.1 · print()
  • 1.2 · Text and strings
  • 1.3 · Numbers
  • + 10 more
2. Making Programs Think
  • 2.1 · Questions with True and False
  • 2.2 · Comparison operators
  • 2.3 · if
  • + 9 more
3. Repeating Work
  • 3.1 · Why computers repeat tasks
  • 3.2 · for loops
  • 3.3 · range()
  • + 9 more
4. Working with Text
  • 4.1 · Strings in more detail
  • 4.2 · String length
  • 4.3 · Indexing
  • + 10 more
5. Organizing Data
  • 5.1 · Why we need collections
  • 5.2 · Lists
  • 5.3 · Reading list elements
  • + 10 more
6. Functions
  • 6.1 · Why functions exist
  • 6.2 · Creating your first function
  • 6.3 · Calling a function
  • + 9 more
7. Files, Paths and Errors
  • 7.1 · What is a file?
  • 7.2 · Files and folders
  • 7.3 · File extensions
  • + 12 more
8. Python Meets DNA
  • 8.1 · Biology becomes data
  • 8.2 · DNA as a string
  • 8.3 · Sequence length
  • + 14 more
9. Biological File Formats
  • 9.1 · What is FASTA?
  • 9.2 · Anatomy of a FASTA record
  • 9.3 · Headers
  • + 10 more
10. Scientific Python
  • 10.1 · What is a Python library?
  • 10.2 · import
  • 10.3 · Why scientists use libraries
  • + 13 more
11. Biopython
  • 11.1 · What is Biopython?
  • 11.2 · Why use a library?
  • 11.3 · Bio.Seq
  • + 12 more
12. Practical Bioinformatics
  • 12.1 · Processing many sequences
  • 12.2 · Filtering by length
  • 12.3 · Filtering by GC
  • + 11 more
13. Final Project
  • 13.1 · Understand the problem
  • 13.2 · Design the program
  • 13.3 · Read the input
  • + 10 more

Start your first lesson

No setup. No account required to start. Just open your browser and begin.

Start learning