Question: https://www.chegg.com/homework-help/questions-and-answers/problem-8-bookmark-page-problem-8-200-points-possible-graded-write-function-called-general-q22854795 so I posted my qeustions yesterday but i have problem with indent can someone help me. This is what the expert give me before

https://www.chegg.com/homework-help/questions-and-answers/problem-8-bookmark-page-problem-8-200-points-possible-graded-write-function-called-general-q22854795

so I posted my qeustions yesterday but i have problem with indent can someone help me. This is what the expert give me before but i keep getting wrong.

they says that

 File "submission.py", line 4 3 def general_poly(numbers):#getting list as argument ^ SyntaxError: invalid syntax https://www.chegg.com/homework-help/questions-and-answers/problem-8-bookmark-page-problem-8-200-points-possible-graded-write-function-called-general-q22854795 so I posted my qeustions yesterday but i have problem 

Problem 8 Bookmark this page Problem 8 0/20 points (graded) Write a function called general_poly , that meets the specifications below. For example, general_poly([1, 2, 3, 4]) (1e) should evaluate to 1234 because 110 +2*102310 410 def general poly (L): L a list of numbers (ne, n1, n2, nk) Returns a function, which when applied to a value x, returns the value #YOUR CODE HERE 1 import math#importing math to use pow function 2 #general-poly function 3 def general-poly(numbers):#getting list as argument 4 x input( "Enter x value : ")#prompting user to enter x value 5 k Ien(numbers)slength of the list 6 k = k 14k will be used as power to the x 7 result -e#final ans will store in result variable 9#for each number in the list 1e for number in numbers: 11 result= result + number*math.pow(x.k) 12k=k-1 13 Press ESC then TAB or click outside of the code editor to exit Incorrect Test results Hide output ERROR File "submission.py", line 4 3 def general-poly(numbers):#getting list as argument SyntaxError:invalid synta Hide output

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!