icon-symbol-logout-darkest-grey

Python Best PracticesCompact course: Python Best Practices

Format

This is a half day course.

Prerequisites

Basic Python knowledge is required.

Summary

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

Signup

This is an on-demand course. You can indicate your interest in the course by signing up. Once a threshold of potential participants is met, we will get in touch with you to schedule the course. Please use the SSC Booking System to sign up.