BB1000 Programming in Python 7.5 credits

Programmering i Python

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.

Show course information based on the chosen semester and course offering:

Offering and execution

No offering selected

Select the semester and course offering above to get information from the correct course syllabus and course offering.

Course information

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:

  • Python syntax: variables, data types, functions and modules.
  • File management, reading, converting and writing of data.
  • Baic 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.

Intended learning outcomes *

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

No information inserted

Literature and preparations

Specific prerequisites *

No information inserted

Recommended prerequisites

Basic computer skills. The labs will be carried out in classrooms with Windows-based workstations.

Equipment

No information inserted

Literature

No information inserted

Examination and completion

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.

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

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 DAT1 and a voluntary examination with a computer are required.

Opportunity to complete the requirements via supplementary examination

No information inserted

Opportunity to raise an approved grade via renewed examination

No information inserted

Examiner

Olav Vahtras

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 BB1000

Offered by

CBH/Theoretical Chemistry and Biology

Main field of study *

Technology

Education cycle *

First cycle

Add-on studies

No information inserted

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.

Additional regulations *

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