Course detail
Programming in Python
FSI-VP0 Acad. year: 2027/2028 Summer semester
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
Supervisor
Department
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.
The study programmes with the given course
Programme B-KSI-P: Mechanical Engineering Design, Bachelor's, compulsory-optional
Programme B-MET-P: Mechatronics, Bachelor's, elective
Programme N-AAE-P: Advanced Automotive Engineering, Master's, elective
Programme N-MET-P: Mechatronics, Master's, elective
Programme B-PRP-P: Professional Pilot, Bachelor's, elective
Programme B-ZSI-P: Fundamentals of Mechanical Engineering, Bachelor's
specialization STI: Fundamentals of Mechanical Engineering, elective
Type of course unit
Lecture
26 hours, optionally
Syllabus
- Development environment, expressions and first collections
- Collections in depth
- Functions, code structure and quality
- Working with files and exceptions
- Iterators and generators
- Classes and interfaces
- Testing and debugging
- Concurrency, parallelism and performance
- The scientific library ecosystem: NumPy, pandas, matplotlib, scikit-learn
- Desktop GUI with PySide6
- Computer vision with pre-trained models
- Speech, web interfaces and inter-system communication
- Integration, application packaging and course summary
Computer-assisted exercise
26 hours, compulsory
Syllabus
- Setting up the environment; converting measurement series with comprehensions
- Aggregating and filtering data from multiple sensors
- Splitting the project into modules; checking code with ruff and mypy
- Saving measurements to CSV and loading device configuration
- Simulated sensor generator and a processing pipeline
- Device classes and a state machine
- Test suite for the state machine with mocked hardware
- Reading multiple sensors concurrently and comparing performance
- Analysing collected measurements: plotting and anomaly detection
- Control panel with a live chart
- Recognising objects on a conveyor belt, or gesture control
- Voice and web control of a device via a REST API
- Semester project presentations and code review