human
I am working on the file "Other functional features.ipynb".
The first task is:
Dalsie priklady na pouzitie partial pri refactoringu
http://chriskiehl.com/article/Cleaner-coding-through-partially-applied-functions/
A preco to nepouzit na specializovany konstruktor?
Can you write Python code for it?

Can you provide a the Python code you requested?
assistant
#Here is the Python code you requested.

class Tovar:
    def __init__(self, typ, mnozstvo=0):
        self.typ=typ
        self.mnozstvo=mnozstvo
        
    def write(self):
        return '{}: {}'.format(self.typ, self.mnozstvo)

nakup_jablk = Tovar('jablka', 3) 
print(nakup_jablk.write())

Jablko = partial(Tovar, 'jablka')
Jablko(4).write()