Main content

Top content


Basic Programming in Python




Course Description:

This introductory course is designed for students in the field of cognitive science to learn the foundational principles of coding using the versatile and powerful programming language, Python. Throughout the course, students will gain practical skills in programming, enabling them to tackle a wide range of computational problems relevant to cognitive science research and applications.

Course Topics:

Variables and Assignments, Arithmetic Operations, Basic Data Types:
Learn how to declare variables and assign values.
Understand and perform arithmetic operations.
Explore basic data types including integers, floats, strings, and booleans.

Data Structures and Type Conversions:
Delve into essential data structures such as lists, tuples, dictionaries, and sets.
Master techniques for converting between different data types.

Conditional Statements, Logical Operators:
Develop the ability to control the flow of your programs using if, elif, and else statements.
Apply logical operators to create complex conditional expressions.

Loops and Recursion:
Implement loops (for and while) to automate repetitive tasks.
Understand the concept of recursion and how to write recursive functions.

Functions and Variable Scope:
Write reusable code by defining and invoking functions.
Learn about variable scope and the lifetime of variables within different parts of a program.

Strings and String Methods:
Manipulate and process text data using various string methods.
Handle string formatting and perform operations such as searching, slicing, and concatenation.

Dealing with Files: Input/Output:
Read from and write to files, enabling the storage and retrieval of data.
Understand file handling techniques for different types of files, including text and binary files.

Introduction to the Numpy Library:
Get started with Numpy, a powerful library for numerical computing.
Perform array operations and leverage Numpy's extensive functionality for data manipulation.

By the end of this course, students will be able to:

Write and debug Python programs with confidence.
Use basic programming constructs to solve problems.
Implement and utilize various data structures.
Handle input and output operations, including file manipulation.
Apply computational tools and techniques to cognitive science research.

Course structure:

The course is structured into blocks of lectures followed by exercises covering the presented topics. Further, the course is accompanied by the Data Camp course "Introduction to Python" with further exercises to be completed outside the in-person course hours. The Data Camp course delivers additional valuable exercise for the covered topics with hints and solutions for each exercise.


No prior programming experience is required. This course is suitable for beginners and those looking to build a solid foundation in programming within the context of cognitive science.

Weitere Angaben

Ort: 93/E33: Samstag, 13.04.2024, Samstag, 20.04.2024 09:00 - 16:00, 15/134: Samstag, 27.04.2024 09:00 - 16:00
Zeiten: Termine am Samstag, 13.04.2024, Samstag, 20.04.2024, Samstag, 27.04.2024 09:00 - 16:00, Ort: 93/E33, 15/134
Erster Termin: Samstag, 13.04.2024 09:00 - 16:00, Ort: 93/E33
Veranstaltungsart: Praktikum (Offizielle Lehrveranstaltungen)
ECTS-Punkte: 4
Art der Durchführung: Hybrid-Sitzungen ohne Video-Aufzeichnung (Teilnahme in Präsenz oder per Videokonferenz/Livestream) [hybrid]


  • Veranstaltungen > Cognitive Science > Bachelor-Programm
  • Veranstaltungen > Cognitive Science > Master-Programm
  • Courses in English > Human Sciences (e.g. Cognitive Science, Psychology)