Python Best PracticesCompact course: Python Best Practices


  • Date: 4.6.24 9am-1pm
  • Instructor: Dr. Inga Ulusoy
  • Venue: Mathematikon Bauteil A, INF 205, 5/104

    This is a half-day course.


Basic Python knowledge is required.


Python has rapidly advanced to the most popular programming language in science and research. From data analysis to simulation and preparation of publications, all can be done in Python with appropriate libraries and implementing own modules. We will discuss Python Enhancement Proposals (PEP) and how these can help you write cleaner code. Common pitfalls in Python will be explained with examples. We will demonstrate typical “bad programming” and how to code the examples in a more pythonic way.

Learning Objectives

After the course participants will be able to

  • Understand the basic PEP recommendations
  • Use a linter and code formatter to ensure following of the guidelines
  • Write better=more readable code
  • Avoid bugs through best practices for example in passing keyword arguments


Sign up for this course here: Signup for the next scheduled course