In this HackerRank Polynomials problem solution, You are given the coefficients of a polynomial P. Your task is to find the value of P at point x.

HackerRank Polynomials in python problem solution

HackerRank Polynomials in python problem solution

import numpy as np
data = np.array([float(i) for i in input().split()])
#print(data)
print(np.polyval(data,float(input())))