BB1000 Programming in Python 7.5 credits

Programmering i Python

Please note

The information on this page is based on a course syllabus that is not yet valid.

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.

  • Education cycle

    First cycle
  • Main field of study

    Technology
  • Grading scale

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

Course offerings

Spring 19 for programme students

Spring 20 for programme students

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 main content

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.

Eligibility

The upper-secondary school before 1 July 2011 and adult education at upper-secondary level before 1 July 2012

Specific entry requirements: mathematics E, physics B and chemistry A. In each of the subjects the grade required is Passed or 3.

The upper-secondary school from 1 July 2011 and adult education at upper-secondary level from 1 July 2012 (Gy2011)

Specific entry requirements: Physics 2, Chemistry 1 and Mathematics 4. In each of the subjects the minimum grade required is Pass.

Recommended prerequisites

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

Literature

Uppgift om kurslitteratur meddelas i kurs-PM.

Examination

  • LAB1 - Laboratory Work, 4.5, grading scale: P, F
  • TEN1 - Examination, 3.0, grading scale: A, B, C, D, E, FX, F

Requirements for final grade

Passed Computer labs and Written examination

Offered by

CBH/Theoretical Chemistry and Biology

Examiner

Olav Vahtras <vahtras@kth.se>

Version

Course syllabus valid from: Autumn 2019.
Examination information valid from: Spring 2019.