K-INFO
HU
EN
Login

Python Programming for Chemical Engineers

Python programozás vegyészmérnököknek
A tantárgyleírás hatályossága
Hatályosság kezdete:
2026. March 21.
Hatályosság vége:
Subject name (Hungarian, English)
Python programozás vegyészmérnököknek
Python Programming for Chemical Engineers
Subject code BMEVITMA005
Subject type
Training Level
Course types and hours (weekly/semester)
Course type lecture tutorial laboratory
hours (weekly) 2 2 0
type (linked/independent) derived course
Assessment type vizsga
Credits 5
Subject coordinator
Dr. Frankó Attila Ernő
position: adjunktus
Responsible department
Távközlési és Mesterséges Intelligencia Tanszék
Faculty Villamosmérnöki és Informatikai Kar
Subject website
Primary curriculum type
Direct prerequisites – Strong prerequisite BMEVITMM191 (Python programozás adatelemzéshez)
Direct prerequisites – Weak prerequisite none
Direct prerequisites – Parallel prerequisite none
Direct prerequisites – Milestone prerequisite none
Direct prerequisites – Exclusion none

Objectives

Programme

1. Introduction to programming and the Python language

The role of programming in engineering problem solving, with particular emphasis on numerical calculations, data processing, and automation.

  • The concept of programming and its engineering applications
  • Sequential execution, loops, branching
  • The role of the Python language

 

2. Basic programming elements: variables and data types

The concept of variables, their creation and use in Python through simple computational examples. Basic data types (integers, floating-point numbers, Boolean values, strings) and their meaning in an engineering context.

  • Creating and naming variables
  • Basic data types and simple operations

 

3. Composite data types: strings and lists

The use of strings for handling textual data. Introduction of lists as tools for storing data series, measurements, and parameter sets.

  • String operations
  • Creating and indexing lists

 

4. Data structures and references

The fundamentals of the Python object model, the reference-based approach, and its effect on program behavior. Through simple examples, we demonstrate how data changes in memory.

  • Objects and references
  • Effects of copying and modification

 

5. Control structures and exceptions

The use of conditional statements and loops to implement algorithms. Error and exception handling, with particular emphasis on invalid measurement or input data.

  • Advanced loop control
  • Exception handling

 

6. Functions and modular thinking

The use of functions to create reusable and readable code. Parameter passing, return values, and the basics of reference handling.

  • Defining custom functions
  • Parameters and return values

 

7. Sorting algorithms and recursion

The presentation of simple sorting methods for processing data sets. The concept of recursion and its role in solving algorithmic problems.

  • List and data sorting
  • Fundamentals of recursive functions

 

8. Fundamentals of object-oriented programming

Introduction of the object-oriented approach through the modeling of real engineering objects. The role of classes, attributes, and methods in structured programming.

  • Classes and objects
  • Constructors and methods

 

9. File handling and multi-module programs

Reading from and writing to files, and practical approaches to storing measurement results. Structuring larger programs using multiple modules.

  • Handling text files
  • Modules and imports

 

10. Operators and numerical representation

Overview of arithmetic, logical, and comparison operators used in Python. Numerical representation, floating-point inaccuracies, and their engineering relevance.

  • Types of operators
  • Numerical accuracy and errors

 

11. Composite data structures

The use of dictionaries, sets, and nested data structures. Processing structured data through practical examples.

  • Dictionaries and sets
  • Nested data structures

 

12. State machines and regular expressions

Basic concepts of state machines and their simple applications in process modeling. The use of regular expressions for data searching and filtering.

  • Fundamentals of state machines
  • Basics of regular expressions

 

13. Presentation of application areas

Application of the knowledge acquired in the course to typical use cases through simple examples, providing learning outcomes that enable interested students to independently explore new topics.

  • The operation of the web and implementation of simple communication between software systems
  • Loading and writing tabular data
Python is one of the most dynamically evolving programming languages, and today it has become an almost indispensable tool for the application of data mining and machine learning methods. The aim of this course is to introduce chemical engineering students to the fundamentals of programming (algorithmic thinking, sequential thinking) as well as to provide more advanced programming knowledge through the use of the Python language, which they can apply in their later studies and in industrial practice.

Learning outcomes

Ez a tantárgy a KKK rendeletben meghatározott, következő kompetenciák fejlesztését szolgálja:

Knowledge
Ismeri a Python programozás alapjait. Ismeri az adatkezelést és adatstruktúrákat. Ismeri az utasításfolyam vezérlést Pythonban (szekvencia, feltételes utasítások, ismétlődő utasítások). Ismeri a függvények létrehozásának és használatának folyamatát. Ismeri a fő adatmanipulációs elveket és fő könyvtárakat (pandas, numpy). Ismeri az adatvizualizációs elveket és fő könyvtárakat (matplotlib).
Skills
Képes Python programnyelven függvényeket létrehozni és ezeket hatékonyan használni a programozási feladatok megoldásához. Képes megérteni és alkalmazni az adatkezelés alapjait Pythonban, beleértve a változók létrehozását és az adatstruktúrák használatát. Képes adatokat manipulálni és elemzéseket végezni a Pandas könyvtár segítségével, valamint adatokat vizualizálni a Matplotlib könyvtárral. Képes importálni és használni külső Python könyvtárakat és csomagokat, hogy kiterjesszék a programjaik funkcionalitását.
Attitudes
Fejleszti az adatelemzői problémafelismerő és -megoldó készséget.
Autonomy and responsibility
Adatelemzési problémák megoldása során önállóan és kezdeményezően lép fel.

Oktatási módszertan

Not provided.

Tanulástámogató anyagok

Online források
Al Sweigart, Automate the Boring Stuff with Python, 3rd Edition, 2025 (free ebook)

Recommended preliminary knowledge for completing the subject

Knowledge type competencies
(azon előzetes ismeretek összessége, amelyek megléte nem kötelező, de a tantárgy eredményes teljesítését nagyban elősegíti)
nincs
Skill type competencies
(azon előzetes képességek és készségek összessége, amelyek megléte nem kötelező, de a tantárgy eredményes teljesítését nagyban elősegíti)
nincs
Recommended (non-compulsory) preliminary competencies
(azon ajánlott (nem kötelező) előzetesen megszerzendő kompetenciák összessége, amelyek jelentősen hozzájárulnak a tantárgy eredményes teljesítéséhez)
nincs
General rules
Követelmények:     a. A szorgalmi időszakban: a házi feladat legalább elégséges szinten való megoldása szükséges az aláíráshoz.     b. A vizsgaidőszakban: írásbeli vizsga, ahol az érdemjegy kizárólag a vizsga eredményétől függ, legalább 40%-ot kell elérni az elégséges jegyhez. Teljesítményértékelés neve (típus) jele értékelt tanulási eredmények Írásbeli vizsga V T1-6, K1-4, A1, O1   jele részarány V 100% Összesen 100% Pótlási lehetőségek: TVSz szerint Konzultációk: Előadások idejében, illetve előre egyeztetett időpontban.
Assessment methods
In-term assessments

No detailed assessments provided.

Weight of in-term assessments

No weights provided.

Exam-period assessments

No detailed assessments provided.

Weight of exam elements

No weights provided.

Grade calculation

No grade thresholds provided.

Attendance requirements

No attendance requirements provided.

Rules for retake and resubmission

Not provided.

Short description

Not provided.

Detailed description

Not provided.

Recommended courses

Not provided.

Workload to complete the subject

No workload breakdown provided.

Validity of subject requirements
Requirements valid from:
Requirements valid until:
Curriculum placement
Faculty Program Curriculum Curriculum type Primary
Vegyészmérnöki és Biomérnöki Kar vegyészmérnöki Vegyészmérnöki mesterképzési szak tanterve elágazó nem