You are viewing a single comment's thread. Return to all comments →
import numpy as np coefficient = list(map(float, input().split())) x = float(input()) result = np.polyval(coefficient, x) print(result)
Seems like cookies are disabled on this browser, please enable them to open this website
I agree to HackerRank's Terms of Service and Privacy Policy.
Polynomials
You are viewing a single comment's thread. Return to all comments →