def silnia(x): if x==0 or x==1: return 1 else: return silnia(x-1)*x def funkcja(x,n): e=0 for i in range(n): e+=(x**i)/(silnia(i)) return e