Description

Course content

This course provides a practical introduction to the writing of Python programs for the complete novice. Participants are led through the core aspects of Python illustrated by a series of example programs. Upon completion of the course, attentive participants will be able to write simple Python programs from scratch and to customize more complex code to fit their needs.

Format

This course runs in parallel on-site in Uppsala, Umeå and Lund. Lectures will be streamed online from one site to the other two, the host site will differ depending on who is lecturing. Several teaching assistants will be present in all three classrooms all week to help with exercises and questions. When registering you will be asked to which site you apply.

The course consists of a mix of presentations, demonstrations, and practical exercises (either in the lab with assistants or on your own). Prior to the course, you can read a companion book “Programming Python”, or “Learning Python”. Such a book will also prove useful for your programming tasks, after the course is over. It is however not required, and material will be presented in class.

Topics covered will include:

  • Core concepts about Python syntax: Data types, blocks and indentation, variable scoping, iteration, functions, methods and arguments
  • Different ways to control program flow using loops and conditional tests
  • Regular expressions and pattern matching
  • Writing functions and best-practice ways of making them usable
  • Reading from and writing to files
  • Code packaging and Python libraries
  • How to work with biological data using external libraries.

Upcoming Training Instances

Introduction to Python - with application to bioinformatics

October 19, 2026 09:00 – October 23, 2026 17:00

Organizer: NBIS

Location: Lund, Umeå, Uppsala, Sweden

Details

Language
English
Licence
Creative Commons Attribution 4.0 International
Affiliations
SciLifeLab
Last Updated
June 16, 2026 12:48

Content Providers

Learning Outcomes

At the end of the course, students should be able to:
* Use variables and explain how operators work
* Process data using loops
* Separate data using if/else statements
* Use functions to read and write to files
* Describe their own approach to a coding task
* Understand the difference between functions and methods
* Be able to read the documentation for built-in functions/methods
* Give examples of use cases for dictionaries
* Write data to a simple dictionary
* Understand the concept and syntax of a function
* Write basic functions for processing data
* Describe pandas dataframes
* Give examples of how to use pandas for processing data
* Explain how regex can be used
* Define the python syntax for regex
* Combine basic concepts to create functional stand-alone programs to process data
* Write file processing Python programs that produce output to the terminal and/or external files
* Explain how to debug and further develop your skills in Python after the course

Structure & Duration

This course runs in parallel on-site in Uppsala, Umeå and Lund. Lectures will be streamed online from one site to the others, the host site will differ depending on who is lecturing. Several teaching assistants will be present in all three classrooms all week to help with exercises and questions. When registering you will be asked to which site you apply.

The course runs for five full days (one week) and consists of a mix of presentations, demonstrations, and practical exercises (either in the lab with assistants or on your own).

Prerequisites & Technical Requirements

Prior Knowledge

The course is suitable for complete beginners and assumes no prior programming experience (beyond the ability to use a text editor). A very basic knowledge of UNIX would be an advantage, such as navigating through folders and issuing commands at a shell prompt. We will not teach UNIX in detail: Other courses are available at SciLifeLab for it.

Technical Requirements

Participants need to bring their own laptop with python installed for the practical exercises. A precourse session will be held to help installing the software needed.

Audience & Keywords

Target Audience
PhD StudentsPostdocsstaff scientists
Keywords
Pythonprogrammingbioinformatics

Course Team

Authors

Past Course Instances

Introduction to Python - with application to bioinformatics

November 24, 2025 09:00 – November 28, 2025 17:00

Organizer: NBIS

Location: Uppsala, Umeå, Lund, Sweden

Introduction to Python – with application to bioinformatics

November 11, 2024 09:00 – November 15, 2024 17:00

Organizer: NBIS

Location: Uppsala, Umeå, Lund, Sweden


Activity log