Skip to main content

BB1000 Programming in Python 7.5 credits

This course is an introductory course in programming based on the Python programming language.  It incorprates some of the best practises from professional programming environments aimed at students in scientific and technical fields.

Choose semester and course offering

Choose semester and course offering to see current information and more about the course, such as course syllabus, study period, and application information.

Application

For course offering

Autumn 2024 Start 26 Aug 2024 programme students

Application code

10005

Headings with content from the Course syllabus BB1000 (Spring 2024–) are denoted with an asterisk ( )

Content and learning outcomes

Course contents

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

  • Common command-line interfaces
  • Jupyter notebooks and code editors
  • Python-syntax: variables, data types, function, moduler
  • File management, reading, converting and writing of data
  • Version control with git
  • Objekt-orientation and classes
  • Program testing
  • Common Python libraries (e.g. numpy, pandas, matplotlib)
  • Scientific applications

Intended learning outcomes

After completion of the course the student shall have

Knowledge and understanding to:

  • use web-based as well as command-line user interfaces on a computer to execute and create scripts in Python
  • describe basic syntax, data types and data structures in Python, using logical control flows (repetition and branching), separate program code into units (functions/classes) for the purpose of applying this in problem solving
  • use program libraries to develop algorithms in code, for the purpose of calculating and presenting results graphically
  • to use version control for backup on their own computer as well as group collaboration with web-based resources
  • apply test-driven development in their programming

Literature and preparations

Specific prerequisites

Swedish secondary school Mathematics 4

Recommended prerequisites

No information inserted

Equipment

Own computer or laptop.

Literature

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

Examination

  • TEN2 - Computer-based examination, 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.

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

Spring version:
The learning objectives are examined with E-level assignments during the computer lab. In addition, a voluntary examination with computer will be offered with problems at A-D level. For grades A-D, an approved grade on TEN2 and a voluntary examination with a computer are required.

Fall version:
The learning objectives are examined based on individual computer-based project assignments.

Opportunity to complete the requirements via supplementary examination

No information inserted

Opportunity to raise an approved grade via renewed examination

No information inserted

Examiner

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 room in Canvas

Registered students find further information about the implementation of the course in the course room in Canvas. A link to the course room can be found under the tab Studies in the Personal menu at the start of the course.

Offered by

Main field of study

Technology

Education cycle

First cycle

Add-on studies

No information inserted

Additional regulations

Students are advised to use their own computer (laptop) for the course.