Python Programming

Course content

Programming basics, data types, conditionals, loops, functions, object oriented programming, pattern matching (regular expressions), computational complexity.


MSc in Health Informatics

Learning outcome


After completing the course, the student will master key programming concepts such as data-types, variables, conditionals, loops, and functions, and have an understanding of the central concepts in object oriented programming and pattern matching. Finally, the student will be familiar with the basic concepts of computational complexity.


The student is capable of solving small to medium sized programming tasks in Python, including tasks related to life sciences and bioinformatics. The student can produce programs that are well-written, well-structured, and well-commented.


The student is capable of solving the many small to medium size programming tasks that arise in the life sciences and bioinformatics, and is able to write well-structured and maintainable programs in Python.

The student

  • can explain the differences between various data-types in Python and can select the relevant type for a given programming task
  • can give a detailed description of conditionals and loops, and is able to explain how loops relate to the complexity of a program
  • can motivate the concepts of function and module, and give examples of how these tools should be used to structure code
  • can explain the basic concepts of Object Oriented Programming, and give examples of appropriate uses of classes and object
  • can identify problems for which regular expressions are well suited, and is able to construct an appropriate regular expression for a given pattern matching problem
  • can give examples of how to handle errors in a program
  • is capable of independently finding online information about external Python modules, and applying this information to solve a specific task

Lectures and exercises mixed (6-9 hours per week).

Type of assessment
Written assignment, 5 days
Individual, writtten take-home exam, grading on the 7-point grading scale.
All aids allowed
Marking scale
7-point grading scale
Censorship form
No external censorship
One internal examiner
Criteria for exam assessment

The exam is a 5-day take-home exam. The students hand in a written report with attached code. The assessment is based on the report and the attached code. Criteria include quality of the code (overall structure, quality, presence of suitable comments), and the correctness, relevance (with respect to the exam questions) and coherence of the report. The level of knowledge displayed should reflect what is outlined in "Learning ourcome".

Single subject courses (day)

  • Category
  • Hours
  • Exam
  • 18
  • Preparation
  • 89,5
  • Lectures
  • 15
  • Exercises
  • 15
  • English
  • 137,5