Programming with Python
Programmering med Python
About the Syllabus
Grading scale
Course modules
Position
The course is taken during the first semester of the Mathematics program, but can also be taken as a stand-alone course. It is a basic course in programming and is counted, in the course requirements for a bachelor's degree, as a course outside the main area of Mathematics.
The course can be included in the following programs: 1) Mathematics program (N1MAT)
Main field of study with advanced study
Entry requirements
In addition to basic qualifications, knowledge equivalent to Foundations of Mathematics MMG220 and Single Variable Calculus 1 MMG230 is required.
Content
Basic syntax and variables: Types, operators, expressions, scope, initialization. Control structures: Conditions, loops, flow control, handling of exceptions. Functions and methods: Parameters, arguments, local variables, code reuse. Object orientation: classes, objects, instance and class methods, instance and class variables. Data structures: lists, dictionaries, sets, stacks. File and text handling: input-output, strings, basic file handling. Graphical programs: Introduction to simple graphics/GUI. Some important packages: numpy, matplotlib, scipy.
Objectives
After passing the course, the student should be able to:
- independently structure and write small programs using concepts such as iteration, functions, modules, classes and methods,
- formulate readable, descriptive and well-documented code,
- use programming to read, process and compile data from large text or numerical files,
- design and implement simple algorithms in code,
- build simple interactive programs with text-based and simple graphical user interfaces,
- use programming tools such as text editors, command interpreters and IDEs (integrated development environments),
- use some standard libraries and follow best practices for programming,
- use functions from the numpy and scipy packages.
Sustainability labelling
Examination formats
The course is assessed with a written exam at the end of the course and mandatory computer labs.
If a student who has been failed twice for the same examination element wishes to change examiner before the next examination session, such a request is to be granted unless there are specific reasons to the contrary (Chapter 6 Section 22 HF).
If a student has received a certificate of disability study support from the University of Gothenburg with a recommendation of adapted examination and/or adapted forms of assessment, an examiner may decide, if this is consistent with the course’s intended learning outcomes and provided that no unreasonable resources would be needed, to grant the student adapted examination and/or adapted forms of assessment.
If a course has been discontinued or undergone major changes, the student must be offered at least two examination sessions in addition to ordinary examination sessions. These sessions are to be spread over a period of at least one year but no more than two years after the course has been discontinued/changed. The same applies to placement and internship (VFU) except that this is restricted to only one further examination session.
If a student has been notified that they fulfil the requirements for being a student at Riksidrottsuniversitetet (RIU student), to combine elite sports activities with studies, the examiner is entitled to decide on adaptation of examinations if this is done in accordance with the Local rules regarding RIU students at the University of Gothenburg.
Grades
The grades on the course are Pass with Distinction (VG), Pass (G) and Fail (U).
Course evaluation
The course is evaluated with an anonymous questionnaire and/or a discussion with the student representatives.
The results of and possible changes to the course will be shared with students who participated in the evaluation and students who are starting the course.
Other regulations
The course MVG302 Programming with Python replaces the course MVG301 Programming with Python, which in turn replaced the course MVG300 Programming with Matlab. It is not permitted to be registered and/or take an examination in more than one of these courses.