Course detail

Programming in Python

FSI-VP0Acad. year: 2027/2028

This course introduces students to the basics of modern programming in Python and to the procedures for creating high-quality, clear, and maintainable code. Students will learn how to work with the development environment, versioning, and basic tools for code analysis. The course covers key elements of the language, such as data structures, functions, exceptions, generators, iterators, and the principles of object-oriented programming. It also includes the basics of graphical user interfaces, testing, program debugging, parallel processing, and application performance optimization. The course concludes with the practical use of Python for communication via REST API  and a summary of the knowledge acquired. The aim is to prepare students to independently create robust and efficient applications in Python.

Language of instruction

Czech

Number of ECTS credits

4

Assignment to study programme types

Bachelor's, Master's

Mode of study

Not applicable.

Learning outcomes of the course unit

Not applicable.

Entry knowledge

Fundamental level of programming in course 1IN (Informatics).

Rules for evaluation and completion of the course

The active participation and mastering the assigned task.
Education runs according to week schedules. Attendance at the seminars is required. The form of compensation of missed seminars is fully in the competence of a tutor.

Aims

Understand the Python scripting language and how to create Python applications. Learn the basics of creating a graphical user interface in Python. The student will be able to create an application using REST API/grpc.
Upon successful completion of the course, students will be able to apply knowledge and understanding of the basic features and role of the Python scripting language, its syntax and semantics.

Study aids

Not applicable.

Prerequisites and corequisites

Not applicable.

Basic literature

Harms, D., Macdonald, K.: Začínáme programovat v jazyce Python. Computer Press 2012, ISBN 80-7226-799-X. (CS)

Recommended reading

Burris, E.: Programming in the Large with Design Patterns, Pretty Print Press, 2012 (EN)
Scipy lecture notes [on-line 1.10.2019: http://www.scipy-lectures.org/] (EN)

Classification of course in study plans

  • Programme B-KSI-P Bachelor's 3 year of study, summer semester, compulsory-optional
  • Programme B-MET-P Bachelor's 1 year of study, summer semester, elective
    2 year of study, summer semester, elective
  • Programme B-PRP-P Bachelor's 1 year of study, summer semester, elective

  • Programme B-ZSI-P Bachelor's

    specialization STI , 1 year of study, summer semester, elective

  • Programme N-AAE-P Master's 1 year of study, summer semester, elective
  • Programme N-MET-P Master's 1 year of study, summer semester, elective

Type of course unit

 

Lecture

26 hours, optionally

Teacher / Lecturer

Syllabus

  1. Development environment, expressions and first collections
  2. Collections in depth
  3. Functions, code structure and quality
  4. Working with files and exceptions
  5. Iterators and generators
  6. Classes and interfaces
  7. Testing and debugging
  8. Concurrency, parallelism and performance
  9. The scientific library ecosystem: NumPy, pandas, matplotlib, scikit-learn
  10. Desktop GUI with PySide6
  11. Computer vision with pre-trained models
  12. Speech, web interfaces and inter-system communication
  13. Integration, application packaging and course summary

Computer-assisted exercise

26 hours, compulsory

Teacher / Lecturer

Syllabus

  1. Setting up the environment; converting measurement series with comprehensions
  2. Aggregating and filtering data from multiple sensors
  3. Splitting the project into modules; checking code with ruff and mypy
  4. Saving measurements to CSV and loading device configuration
  5. Simulated sensor generator and a processing pipeline
  6. Device classes and a state machine
  7. Test suite for the state machine with mocked hardware
  8. Reading multiple sensors concurrently and comparing performance
  9. Analysing collected measurements: plotting and anomaly detection
  10. Control panel with a live chart
  11. Recognising objects on a conveyor belt, or gesture control
  12. Voice and web control of a device via a REST API
  13. Semester project presentations and code review