Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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 syntaximage text in transcribed 
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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Essentials of Database Management

Authors: Jeffrey A. Hoffer, Heikki Topi, Ramesh Venkataraman

1st edition

133405680, 9780133547702 , 978-0133405682

More Books

Students also viewed these Databases questions

Question

Q.1. Taxonomic classification of peafowl, Tiger and cow ?

Answered: 1 week ago

Question

Q .1. Different ways of testing the present adulterants ?

Answered: 1 week ago

Question

What is the basis for Security Concerns in Cloud Computing?

Answered: 1 week ago

Question

Describe the three main Cloud Computing Environments.

Answered: 1 week ago