Semester 1 · Compulsory · 6 ECTS
Introduction to Programming
About the course
An introduction to programming in Python, from algorithmic thinking and basic data types to functions, modules and data collections. The course covers branching and loops, working with files, simple sorting algorithms, and the graphical display of data and the modelling of random events.Outcomes and topics
- Approach to problem solving, algorithms, pseudocode and flowcharts
- Simple data types: integers, floating-point numbers, the Boolean type and strings
- Variables, arithmetic expressions and operators
- Working in the IDLE development environment and rules for writing programs
- Program structure, decision making and branching
- Loops, nested structures and breaking out of a loop
- Defining your own functions and creating modules
- Data collections: sequences, strings, built-in string functions and tuples
- Lists, and operators, functions and methods on lists
- The set data type and dictionaries
- Working with files
- Turtle graphics, simple graphical programs and plotting mathematical functions
- Modelling random events and simple sorting algorithms
Teaching and assessment
Teaching is delivered through lectures and computer exercises with a large number of tasks. The grade is earned exclusively through continuous assessment: two practical mid-term exams on the computer, two theory mid-term exams and solving tasks in the exercises.
Course leader and instructors
Teaching plan
The official, detailed teaching plan for the current academic year is always available on the Merlin pages of the course, to students enrolled in it. The general schedule of lectures is on the page Documents and decisions.