Skip to main content
Before choosing courseDD1331 Fundamentals of Programming 5.0 creditsAdministrate About course

Choose semester and course offering

Choose semester and course offering to see information from the correct course syllabus and course offering.

* Retrieved from Course syllabus DD1331 (Autumn 2020–)

Content and learning outcomes

Course contents

Fundamental computer concepts.

Programming in a modern programming language (Python). Data structures and classes. Problem-solving through division into sub-problems. Program structuring. Several smaller programming assignments as well as one larger, individual programming assignment with strong emphasis on structuring and specification of included modules.

Intended learning outcomes

After passing the course, the student should be able to

  • at a general level identify the parts of and the terminology for a computer system, such as CPU, memory, operating system and user interface
  • retrieve, save, update and document changes in code using a version control system
  • classify syntactic elements in program code with correct terminology
  • identify and apply basic data types, classes and type conversions
  • identify, apply and troubleshoot flow control as well as logical and arithmetic expressions
  • analyze the scope and extent of a variable
  • graphically describe the connection between variable names, types and data
  • debug short programmes written by others
  • write and troubleshoot longer programmes
  • write a specification for a longer programme
  • divide a problem into manageable parts
  • divide a program into manageable parts
  • use and evaluate good programming practices
  • implement, troubleshoot and with correct terminology describe recursive algorithms
  • combine the embedded functions of the programming language with own functions to solve programming problems

to be able to

  • carry out computations and solve programming problems
  • use KTH's computer systems
  • be prepared for the next course in computer science.

For higher grades, the student should also be able to

  • implement an interactive graphical user interface.

Course Disposition

No information inserted

Literature and preparations

Specific prerequisites

No information inserted

Recommended prerequisites

High school mathematics (scientific program). Some computer experience (the concepts of operating system and file, and experience from some computer application, e.g. word processing). DD1301 Computer introduction is recommended and can be read in parallel.


No information inserted


No information inserted

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


  • KONT - Partial exam, 1,0 hp, betygsskala: P, F
  • LAB4 - Laboratory work, 2,0 hp, betygsskala: A, B, C, D, E, FX, F
  • PRO1 - Individual programming project, 2,0 hp, betygsskala: 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.

The examiner may apply another examination format when re-examining individual students.

Opportunity to complete the requirements via supplementary examination

No information inserted

Opportunity to raise an approved grade via renewed examination

After the end of the course offering, it is not possible to raise an approved grade via renewed examination.


Profile picture Sten Andersson

Profile picture Stefan Nilsson

Ethical approach

  • All members of a group are responsible for the group's work.
  • In any assessment, every student shall honestly disclose any help received and sources used.
  • In an oral assessment, every student shall be able to present and answer questions about the entire assignment and solution.

Further information

Course web

Further information about the course can be found on the Course web at the link below. Information on the Course web will later be moved to this site.

Course web DD1331

Offered by

EECS/Computer Science

Main field of study


Education cycle

First cycle

Add-on studies

DD1327 Fundamentals of Computer Science


Marcus Dicander, e-post:

Transitional regulations

The earlier course components LAB1, TEN2 and LAB2 are replaced by LAB4, KONT and PRO1, respectively.

Supplementary information

In this course, the EECS code of honor applies, see: