Course syllabus

The course aims to give basic knowledge on how to write programs in Python. The course consists of the following parts:

  • Python syntax: variables, data types, functions and modules.
  • File management, reading, converting and writing of data.
  • Basic Linux (bash).
  • Version management with git.
  • Object oriented programming and classes.
  • Program testing with pytest.
  • The libraries, numpy, pandas and matplotlib
  • Decorators and iterations in python.

 

After completion of the course the student shall have

Knowledge and understanding to:

  • describe basic syntax, computer types and structure in Python, use logic control flows (repetitions and branching), separate code in units (functions), with the purpose of applications in problem solving.
  • Use libraries to develop algorithms in code, with the purpose to calculate and present results graphically.
  • Use versioning tools for backup on own computer as well as for collaboration in group, using resources on the web.
  • Apply test-based development tools when writing programs.

Course disposition

Each module will consist of lectures and computer labs

Literature and preparations

Specific prerequisites

Swedish secondary school Physics 2, Chemistry 1 and Mathematics 4 or equivalent

Recommended prerequisites

Basic computer skills

Equipment

Computer

Literature

Online material

Examination and completion

If the course is discontinued, students may request to be examined during the following two academic years.

Grading scale

A, B, C, D, E, FX, F

Examination

  • DAT1 - Computer assignment, 7.5 credits, grading scale: A, B, C, D, E, FX, F

Based on recommendation from KTH’s coordinator for disabilities, the examiner will decide how to adapt an examination for students with documented disability.