Veidlapa Nr. M-3 (8)
Study Course Description

Programming Basics (Python)

Main Study Course Information

Course Code
SZF_271
Branch of Science
Other engineering and technologies
ECTS
3.00
Target Audience
Biology; Business Management; Civil and Military Defense; Clinical Pharmacy; Communication Science; Dentistry; Digital Health; Health Management; Information and Communication Science; Juridical Science; Law; Life Science; Management Science; Marketing and Advertising; Medical Services; Medical Technologies; Medicine; Midwifery; Nursing Science; Pedagogy; Person and Property Defence; Pharmacy; Political Science; Psychology; Public Health; Rehabilitation; Social Anthropology; Social Welfare and Social Work; Sociology; Sports Science; Sports Trainer
LQF
Level 6
Study Type And Form
Full-Time

Study Course Implementer

Course Supervisor
Structure Unit Manager
Structural Unit
Faculty of Social Sciences
Contacts

SZF, Kuldigas Street 9C, szf@rsu.lv

About Study Course

Objective

The aim of the study course is to provide knowledge and practical skills in Python programming as a universal tool for data processing and the automation of daily administrative work.

The study process covers the technical basis of the language (control constructs, data structures, functions and the basic principles of object-oriented programming) and its practical application: processing tabular data, creating reports and graphs, generating documents and automating administrative processes.

An essential part of the course is programming with artificial intelligence (AI) support: participants learn the basic principles of operation of large language models, the use of AI assistants in developing solutions, the principles of operation of AI agents (such as Claude Code) and reusable AI workflows (Skills), as well as the critical evaluation of AI-generated code and the safe use of AI tools in working with data.

Preliminary Knowledge

Basic computer skills: file and folder management, operating system and internet browser navigation, working with Excel. Logical thinking will be useful. As much of the programming documentation and tools are available in English, reading skills in English are required. Previous programming experience is not required. Participants need a computer with Python and Visual Studio Code installed, as well as a microphone and internet connection for online classes

Learning Outcomes

Knowledge

1.Explain the basic elements, syntax and algorithmic logic of the Python programming language. -Forms of verification: Online tests (tests 1-3).

Individual work and tests

Online test battery (tests 1 to 6)

2.Describe the structure of data, the function and the importance of object-oriented programming (OOP) in code organisation and recognise it in finished code, including AI-generated code.

Individual work and tests

Online test battery (tests 1 to 6)

3.Understand the basic principles of how large language models work, the role of AI assistants and agents in software development, and the conditions for safe use of AI tools when working with data.

Individual work and tests

Online test battery (tests 1 to 6)

4.Know the libraries and methods needed for the processing, visualization of tabular data and the automation of administrative processes.

Individual work and tests

Online test battery (tests 1 to 6)

Skills

1.Write structured Python code, applying control structures, functions and objects to implement simple algorithms.

2.Use AI assistants for code writing, explanation, debugging and verification, and prepare descriptions of reusable AI workflows (Skills).

3.Load, clean, aggregate and visualize tabular data (Excel, CSV), including trend line creation.

4.4. Develop automation scripts for administrative tasks (Excel, Word, PDF documents, file management, email templates).

Competences

1.Independently identify and apply appropriate Python libraries, programming approaches, and AI tools to solve real-world work tasks.

2.Analyze workflows and create automated solutions that replace manual data processing and repetitive administrative work.

3.Critically evaluate AI-generated solutions by verifying their correctness and safety, and provide a reasoned justification for the chosen technical solutions. -Forms of verification: Presentation and defence of the Final Paper (understanding of the code).

Individual work and tests

Final Paper (50%)

Assessment

Individual work

Title
% from total grade
Grade
1.

Online test battery (tests 1 to 6)

50.00% from total grade
10 points

After each of the first six training days, the participants complete a short online test (approximately 10-15 multiple-choice questions and short code analysis, 20-30 minutes) in the e-course environment. There are two attempts for each test, the best result is counted. The test must be completed by the start of the next training day. The five best test results out of six are counted in the final assessment.

Test Subjects (lessons)

Test 1 Introduction to Python, data types and variables (1-2)

Test 2 Logic, conditions and loops (3-4)

Test 3 Data structures and functions (5-6)

Test 4 Object-oriented programming; basics of AI operation and programming with AI (7-8)

Test 5 AI agents, Claude Code, Skills and Cowork (9-10)

Test 6 Administrative automation and data processing with pandas (11-12)

Examination

Title
% from total grade
Grade
1.

Final Paper (50%)

50.00% from total grade
10 points

Participants work in pairs to develop a small, functional Python solution that automates a real or realistic task from their work environment (e.g., generating documents from an Excel list, preparing a report with charts, merging and cleaning data exports). The use of AI tools is allowed and encouraged in development, and their use must be described in the defense.

Procedure:

· Lesson 8: assignment of the final paper and examples of topics.

· Lesson 10: pairs formed.

· By 18.11.2026.: submission of a topic description (3-4 sentences: what problem is being solved and what is being automated) in the e-course environment.

· Lesson 11: topic coordination with the lecturer.

· Lesson 14: practical workshop for the development of final papers in the presence of the lecturer (consultations, verification of intermediate results).

· By 26.11.2026 at 23:59: submission of code, a short description (README), and fictitious sample data in the e-course environment.

· Lessons 15-16: presentation and defense (approximately 12 minutes per pair: 7-8 minutes demonstration, 4 minutes questions). The order of presentations will be published by 25.11.2026.

Assessment criteria:

· Functionality: the solution works without critical errors and solves the set task.

· Use of course topics: at least three course topics are used in the solution (e.g., loops and functions, working with files, pandas, charts, document generation).

· Code quality: the code is structured, has understandable names, and is commented.

· Data protection: fictitious or anonymised data is used.

· Code understanding: each participant answers questions about the operation of their code, including parts created with the help of AI.

· Reflection and justification of AI use: how AI tools were used, how the correctness of the code generated by them was verified, and why specific technical solutions were chosen.

The assessment is made individually for each participant, taking into account the joint work of the pair and the participant's answers in the defense.

Final examination: exam (oral) - presentation and defense of the final paper.

Study Course Theme Plan

FULL-TIME
Part 1
  1. Class/Seminar

Modality
Location
Contact hours
On site
Computer room
2

Topics

Lesson: introduction to Python and the basics of computing
Description

The place of Python in modern technology and administrative work, algorithms and types of errors, the principle of operation of the interpreter. In the practical part, the working environment (Visual Studio Code) is checked and the first program with print() is created. At the end of the topic, the participants will be able to create and run a simple Python program.

  1. Class/Seminar

Modality
Location
Contact hours
On site
Computer room
2

Topics

Lesson: Data, variables, and text
Description

Data types (text, numbers, Boolean), type conversion, operators, variables, input with input() and f-strings. In the practical part, texts are processed, for example, an email address is created from a first and last name or a personalized invitation. At the end of the topic, the participants will be able to work with variables and text methods.

  1. Class/Seminar

Modality
Location
Contact hours
On site
Computer room
2

Topics

Lesson: Logic and Flow Control
Description

Boolean logic (and, or, not) and conditional constructions (if, elif, else). In the practical part, the logic of decision-making for administrative cases is created, such as checking the compliance of an application or determining the status. At the end of the topic, the participants will be able to create programs with branching.

  1. Class/Seminar

Modality
Location
Contact hours
On site
Computer room
2

Topics

Lesson: Cycles and Iterations
Description

for un while cikli, range(), iterāciju kontrole. Praktiskajā daļā tiek apstrādāti saraksti, piemēram, dalībnieku saraksta caurskatīšana un kopsavilkuma izveide. Tēmas noslēgumā dalībnieki izpratīs atkārtojošos darbību automatizāciju

  1. Class/Seminar

Modality
Location
Contact hours
On site
Computer room
2

Topics

Lesson: Data Structures
Description

Lists, tuples and dictionaries, their differences and use. In the practical part, simple reference systems are created, e.g. study programme → coordinator. At the end of the topic, the participants will be able to choose the appropriate data structure for the task.

  1. Class/Seminar

Modality
Location
Contact hours
On site
Computer room
2

Topics

Lesson: Functions and Modules
Description

Function definition, parameters, return values, variable scope, module importing and working with files. In the practical part, the code from the previous lessons is divided into functions. At the end of the topic, the participants will understand the importance of code modularity.

  1. Class/Seminar

Modality
Location
Contact hours
On site
Computer room
2

Topics

Lesson: Object-oriented programming
Description

Classes, objects, properties, and methods. Emphasis on reading and using objects: library objects (e.g., Excel and Word documents) and understanding the structure of code generated by AI. By the end of the topic, participants will be able to distinguish and understand classes, objects, and methods in finished code.

  1. Class/Seminar

Modality
Location
Contact hours
On site
Computer room
2

Topics

Lesson: Basics of AI operation and programming with AI assistant
Description

Basic principles of the operation of large language models (LLM), their possibilities and limitations (hallucinations, context), safe use of AI tools and personal data protection. "Human-in-the-loop" approach: task formulation, reading, testing and correcting AI-generated code. At the end of the topic, participants will be able to use AI assistants in programming in a critical way. A final paper is assigned at the end of the lesson.

  1. Class/Seminar

Modality
Location
Contact hours
On site
Computer room
2

Topics

Lesson: AI Agents in Programming: Claude Code
Description

Difference between AI chat tool and agent. Demonstration of Claude Code in development environment: planning, solution creation, testing, project rules (CLAUDE.md). In the practical part, participants will develop a small automation solution with an AI chat tool and compare it with an agent approach. At the end of the topic, participants will understand how to give a task to an AI agent and how to check the result of its work

  1. Class/Seminar

Modality
Location
Contact hours
On site
Computer room
2

Topics

Lesson: Reusable AI workflows: Skills and Cowork
Description

Claude Skills – sets of instructions and scripts for repetitive work tasks; Claude Cowork – AI agent for working with files without programming. When an AI agent is enough and when a Python script is needed. The lecturer demonstrates the operation of Skills and Cowork, the participants prepare a Skill description (instructions) for their work task in the practical part. Final paper pairs are created.

  1. Class/Seminar

Modality
Location
Contact hours
On site
Computer room
2

Topics

Administrative automation
Description

File and folder management, automatic generation of Excel reports and Word/PDF documents, creation of email templates. In the practical part, a typical office task is automated, such as generating certificates from a list of participants. At the end of the topic, the participants will have created a workflow that replaces manual work. The topics of the final papers are coordinated.

  1. Class/Seminar

Modality
Location
Contact hours
On site
Computer room
2

Topics

Lesson: Data Processing with pandas
Description

DataFrame and Series construction, loading data from Excel and CSV (e.g. exports from the study information system), cleaning, filtering, merging, grouping and saving results in Excel format. At the end of the topic, participants will be able to use Python to perform typical Excel data tasks more quickly.

  1. Class/Seminar

Modality
Location
Contact hours
On site
Computer room
2

Topics

Lesson: Reviews, charts and trends
Description

Data collection and visualization (pandas, matplotlib), choosing the right graph, trend lines and simple forecasts (analogues to Excel trend lines), including graphs in reports. At the end of the topic, participants will be able to create a clear overview of data and justify conclusions.

  1. Class/Seminar

Modality
Location
Contact hours
On site
Computer room
2

Topics

Class: Final Paper Workshop
Description

Students work on their Final Papers in the presence of a lecturer: individual tutorials, correction of mistakes, checking of intermediate results and preparation for the presentation. At the end of the class, the order of presentations is published.

  1. Class/Seminar

Modality
Location
Contact hours
On site
Computer room
2

Topics

Lesson: Presentation and defence of final papers (examination)
Description

The teams present their automation solutions, demonstrate their operation, and answer questions about the code and the use of AI tools.

  1. Class/Seminar

Modality
Location
Contact hours
On site
Study room
2

Topics

Lesson: Presentation and defence of the Final Paper (examination)
Description

The teams present their automation solutions, demonstrate their operation, and answer questions about the code and the use of AI tools.

  1. Test

Modality
Location
Contact hours
On site
Study room
2

Topics

Exam
Total ECTS (Creditpoints):
3.00
Contact hours:
32 Academic Hours
Final Examination:
Exam (Oral)

Bibliography

Required Reading

1.

Sweigart, A. (2019). Automate the Boring Stuff with Python: Practical Programming for Total Beginners. 2nd Edition. No Starch Press. •Komentārs: Ideāli atbilst kursa 12.-14. nodarbībai (Web Scraping, Excel/PDF automatizācija).Suitable for English stream

2.

Matthes, E. (2023). Python Crash Course: A Hands-On, Project-Based Introduction to Programming. 3rd Edition. No Starch Press. •Komentārs: Viena no pasaulē atzītākajām grāmatām iesācējiem. Tā lieliski nosedz kursa 1. daļu (sintakse, saraksti, funkcijas, klases) un sniedz labus praktisko projektu piemērus.Suitable for English stream

3.

McKinney, W. (2022). Python for Data Analysis: Data Wrangling with pandas, NumPy, and Jupyter. 3rd Edition. O'Reilly Media. •Komentārs: Sarakstījis Pandas bibliotēkas autors. Šī ir "zelta standarta" grāmata kursa 10.-11. nodarbībai (Datu analīze un tīrīšana). Pieejama arī tiešsaistē.Suitable for English stream

Additional Reading

1.

Downey, A. B. (2015). Think Python: How to Think Like a Computer Scientist. 2nd Edition. O'Reilly Media. Komentārs: Šī grāmata vairāk fokusējas uz teoriju un datorzinātņu domāšanu. Tā ir ļoti noderīga, lai sagatavotos 1. daļas teorētiskajam pārbaudījumam un izprastu jēdzienus dziļāk.Suitable for English stream

2.

Real Python (Tutorials & Articles) Komentārs: Kvalitatīvs resurss, kurā padziļināti izskaidrotas specifiskas tēmas, piemēram, "Venv" izveide, OOP principi vai API integrācija.Suitable for English stream

3.

W3Schools Python Tutorial Komentārs: Ērts resurss ātrai sintakses pārbaudei un īsiem praktiskiem piemēriem nodarbību laikā.Suitable for English stream

4.

Anthropic. Claude dokumentācija (Claude Code, Agent Skills, Cowork). Komentārs: aktuālākais avots kursa 8.–10. nodarbībai.Suitable for English stream