17 lines
367 B
Python
17 lines
367 B
Python
|
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
|