Python Best Practices Compact course: Python Best Practices
Format
- Date: 10.12.2026
- Time: 9am - 1pm
- Instructor: Dr. Thomas Isensee, Research Software Engineer, Scientific Software Center
- Venue: Mathematikon Bauteil A, Im Neuenheimer Feld 205, in seminar room 12 on the 5th floor
This is a half-day course.
Prerequisites
Basic Python knowledge is required.
The course website contains instructions for setting up the course exercises.
Summary
Python is widely used in science and research, from data analysis and simulation to preparing publications. This course introduces practical habits and tools for writing readable, maintainable Python code. We will cover project setup, automated code formatting and checks, and the essentials of organizing code into an installable Python package. We will also introduce testing and type hints, explain common Python pitfalls, and explore useful programming patterns. Practical examples and hands-on exercises will help participants apply these techniques to their own projects.
Learning Objectives
After the course participants will be able to
- Use a linter and code formatter
- Annotate functions with type hints
- Understand the basic structure of a Python package
- Write tests
- Avoid common pitfalls
- Write more readable code
Signup
Sign up for this course here: Signup for the next scheduled course

