Course detail
Programming in Python
FSI-9PVP Acad. year: 2023/2024 Summer semester
Students will get acquainted with modern scripting language Python.
Language of instruction
Czech
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
To examine the topic of scripting language Python and designo of their applications. To understand GUI programming using Python.
Having successfully completed the course, students will be able to use knowledge and understanding of the nature of scripting and the role of scripting languages, the syntax and semantics of Python.
The study programmes with the given course
Programme D-APM-P: Applied Mathematics, Doctoral, recommended course
Programme D-FIN-P: Physical Engineering and Nanotechnology, Doctoral, recommended course
Programme D-FIN-K: Physical Engineering and Nanotechnology, Doctoral, recommended course
Programme D-APM-K: Applied Mathematics, Doctoral, recommended course
Type of course unit
Lecture
20 hours, optionally
Teacher / Lecturer
Syllabus
1079/5000
1. Introduction. Basic properties, history of Python. Comparison with other languages.
2. Basics of language. Code structure, comments. Variables, data types. Operators and expressions. Numbers and strings. Collection data types, sequences, sets. Working with strings, formatting. Program Run Controls (Branch Commands. Cycle Commands)
3. Functions and procedures. Definition of functions and procedures. Passing parameters. Variable number of parameters. Functions for working with collections.
4. Modules and packages. Introduction to modules. Creating custom modules and packages. Errors and Exceptions. Types, invocation, capture, and exception handling.
5. Working with files. Opening files, reading, writing. Pickle, json, shelve modules
6. Scripts. Create a script and run it. Command-line arguments. Forwarding. Start an external program. Scripts on UNIX and Windows
7. Object oriented programming. Classes, attributes and methods. Magic methods. Inheritance and multiple inheritance. More OOP features in Python
8. Applications: Networks, HTTP client, SMTP, simple HTTP server, remote procedure call XML-RPC
9.-10. Application: Snakes game