I have a list of polynomial equation constants and I want to write this equation with for loop inside print() function. What is the shortest way (if one-line code exist would be more appropriate)?
EDIT: (reason: adding a sample) The code is below:
cnst=list()
degree=int(input("Enter degree of your polynomial: "))
#degree=int(input("Enter degree of your polynomial: "))
# must use degree+1 to include constant term
for i in range(degree+1):
print(i)
print("Enter constant for x^" + str(degree-i) + ": ", end='')
cnst.append(float(input()))
print (cnst)
print("\nFunction created: ")
#print equation code here <<--