Inteligentny_Wozek/packageList.py

17 lines
367 B
Python
Raw Normal View History

2023-05-06 14:54:04 +02:00
class listOfPackages:
list = []
def add(self, item):
self.list.append(item)
def remove(self):
self.list.pop()
def zainicjuj_liste_paczek():
from paczka import Paczka
packageList = listOfPackages()
demo_paczka = Paczka('duzy', 10, any, False, any, any, any, any, any)
packageList.add(demo_paczka)
return packageList