Post History
Python 3, 46 bytes f=lambda p,x,a=0:p and f(p[1:],x,a*x+p[0])or a Try it online! Takes input reversed.
Answer
#1: Initial revision
# [Python 3], 46 bytes <!-- language-all: lang-python --> f=lambda p,x,a=0:p and f(p[1:],x,a*x+p[0])or a [Try it online!][TIO-kshkvi2g] [Python 3]: https://docs.python.org/3/ [TIO-kshkvi2g]: https://tio.run/##K6gsycjPM/7/P802JzE3KSVRoUCnQifR1sCqQCExL0UhTaMg2tAqFiSmVaFdEG0Qq5lfpJD4v6AoM69EI00j2lDPIDbaykrXMFZHwdDCSFOTC1lKR8EISd4EWdZIzxRV1kDPFJtuHQVjEGGCbA9I5X8A "Python 3 – Try It Online" Takes input reversed.