zadanie26 using functools.reduce
zadanie27
zadanie28
zadanie29
zadanie30
fixed some warnings