Introduction. Power series are a powerful tool in mathematical analysis for approximating various functions. In this article, we explore the use of the Python programming language to calculate the values of functions by approximating them with power series. We will consider the theoretical foundations of building power series, their numerical calculation and provide an example for a better understanding.