From 78eb846720bafa0fd9a6187b0aabf6c0d38fc075 Mon Sep 17 00:00:00 2001 From: tafit0902 Date: Sat, 23 Mar 2024 23:17:51 +0100 Subject: [PATCH] dodano akcje oraz srodek, przykladowe srodki tworzone w akcjach --- Akcja.py | 6 ++++++ Srodek.py | 5 +++++ 2 files changed, 11 insertions(+) create mode 100644 Akcja.py create mode 100644 Srodek.py diff --git a/Akcja.py b/Akcja.py new file mode 100644 index 0000000..ab33ca8 --- /dev/null +++ b/Akcja.py @@ -0,0 +1,6 @@ +class Akcja: + srodki = [] #lista obiektów klasy Srodek + benefit = [] #lista typu string + def __init__(self, srodki, benefit): + self.srodki = srodki + self.benefit = benefit \ No newline at end of file diff --git a/Srodek.py b/Srodek.py new file mode 100644 index 0000000..a4a0f81 --- /dev/null +++ b/Srodek.py @@ -0,0 +1,5 @@ +class Srodek: + def __init__(self, id, nazwa, typ): + self.id = id + self.nazwa = nazwa + self.typ = typ \ No newline at end of file