Реализуй функцию Python по приведённой спецификации. Верни ТОЛЬКО тело функции с правильными отступами, без…
Реализуй функцию Python по приведённой спецификации. Верни ТОЛЬКО тело функции с правильными отступами, без…: a task in unslop-harbor (Harbor dataset). def derivative(xs: list): """ xs represent coefficients of a polynomial. xs 0 + xs 1 x + xs 2 x^2 + .... Return derivative of this polynomial in…
The task
def derivative(xs: list): """ xs represent coefficients of a polynomial. xs[0] + xs[1] * x + xs[2] * x^2 + .... Return derivative of this polynomial in the same form. >>> derivative([3, 1, 2, 4, 5]) [1, 4, 12, 20] >>> derivative([1, 2, 3]) [2, 6] """
Part of rawmodels/unslop-harbor.