Welcome to the Python for Biologists course repository! This contains all the notebooks and materials you'll need for the course.
No installation needed! All materials run in Google Colab (free, browser-based). Just click any notebook link below and start coding!
Follow the instrcution here to download the repo and begin local development:
For lecture slides and additional resources, visit: python-for-biologists.vercel.app
Work through these notebooks in order for the best learning experience:
- **Welcome to Google Colab**🎯 Your first steps with Jupyter notebooks and Python
- **Variables & Comments**📦 Learn to store data and document your code
- **Data Types**🔢 Numbers, text, and more - understanding Python data
- **F-Strings & Formatting**🎨 Create beautiful, professional output
- **Functions**🔧 Build reusable code blocks
- **Lists**📋 Organize multiple pieces of data
- **For Loops**🔄 Automate repetitive tasks
- **Paths & File System**📁 Navigate and organize files
- **Looping & Appending**🔄 Build data collections systematically
- Reading & Writing Files 📄 Connect Python to your lab data
- **Lab Calculator Toolkit**🧪 Ready-to-use calculators for common lab tasks!
- Final MW Calculator Solution ⚛️ Complete molecular weight calculator project
- Click any link above - it will open in Google Colab
- Sign in with your Google account (Sussex email works!)
- Copy to your Drive:
File → Save a copy in Drive - Run code cells: Click the play button or press
Shift + Enter - Experiment: Change values, break things, learn!
- ✅ Type code yourself (don't just copy-paste)
- ✅ Run every cell and read the output
- ✅ Try the exercises at the end of each notebook
- ✅ Experiment with changing values
- ✅ Ask questions when stuck
- ❌ Rush through without understanding
- ❌ Skip notebooks (they build on each other)
- ❌ Be afraid of errors (they help you learn!)
- ❌ Use AI to write code for you (you won't learn)
y3-bio-python/
├── notebooks/
│ └── lecture_1/ # All Lecture 1 notebooks
├── data/
│ └── reagents.csv # Sample data for exercises
├── main.py # Example Python script
└── README.md # This file
- In Colab: Read error messages carefully - they often tell you what's wrong
- Slack Channel: Ask your classmates and TAs
- Lab Sessions: Bring your questions to the practical sessions
- Office Hours: Thursdays 2-4pm with Dr. Hochegger
- Make sure you're signed into Google
- Click the play button next to the code cell
- Check if you missed running earlier cells
- Read the error message (usually the last line)
- Check for typos (Python is case-sensitive!)
- Make sure you ran all previous cells in order
- Always use
File → Save a copy in Drive - Your work auto-saves every few minutes
- Check your Google Drive for saved copies
"You can't learn Python from lectures alone - you must write code!"
This course gives you the tools and direction, but the learning happens when you:
- Type code yourself
- Make mistakes and fix them
- Build something useful
- Practice regularly
Prof. Helfrid Hochegger 📧 hh65@sussex.ac.uk Dr. Doran Amos 📧 D.P.Amos@sussex.ac.uk
This project is licensed under the MIT License - see the LICENSE file for details. These materials are freely available for educational use. Feel free to share and adapt with attribution.
Ready to start? Click on Welcome to Google Colab and begin your Python journey! 🚀