Python II 4 Cogsci
Python II 4 Cogsci
Objectives
To get you acquainted with several Python libraries that will be useful in your everyday
tasks as a cognitive scientist (analyse corpora, run experiments, display data, ...).
Methodology
This will be hands-on lectures: At the beginning, I will briefly present an overview
of the libraries, as well as some examples of use. Then, there will be one or several
programming assignments for the whole class (a step by step strategy to solve the
problem will be provided. Sometimes, I will also interrupt the students to discuss
relevant concepts)
Prerequisites
I assume knowledge of core Python concepts (constants, variables, lists, dictionaries,
control flow (conditionals, loops), functions, importing momdules) as explained, say,
in the first ten chapters of Invent_Your_Own_Computer_Games_with_Python.
I expect you should know how to:
∙ use the python interpreter (suggestion: use ipython)
∙ use an editor to load, write, save Python programs (suggestion: use IDLE if you
like a minimalist approch, spyder if you prefer a comprehensive development
environment).
∙ start a python program from the command line (minimal knowledge of command
line under either Windows or Unix (cd; mkdir;...)) .
Ideally:
∙ knowledge of a (distributed) version control system such as Git or Mercurial
∙ basic knowledge of objects in python
1
1. Program a simple visual detection task
2. Program a diaporama
Lecture 2: Pygame II
Sprites (moving objects), Sound
Activities: