• anonymous
Trying Exercise 2.10 OPT.2 Part 2 Write a list comprehension which solves the equation y = x2 +1. Your solution should print out a list of [x,y] pairs; use the domain x ∈ [−5, 5] and the range y ∈ [0, 10]. My best attempt: [(x,x*x+1) for x in range(-5,5) | (x*x+1) in range(0,10)] But does not seem to work. Anything I am missing?
MIT 6.189 A Gentle Introduction to Programming Using Python (OCW)
• Stacey Warren - Expert brainly.com
Hey! We 've verified this expert answer for you, click below to unlock the details :)
SOLVED
At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores et quas molestias excepturi sint occaecati cupiditate non provident, similique sunt in culpa qui officia deserunt mollitia animi, id est laborum et dolorum fuga. Et harum quidem rerum facilis est et expedita distinctio. Nam libero tempore, cum soluta nobis est eligendi optio cumque nihil impedit quo minus id quod maxime placeat facere possimus, omnis voluptas assumenda est, omnis dolor repellendus. Itaque earum rerum hic tenetur a sapiente delectus, ut aut reiciendis voluptatibus maiores alias consequatur aut perferendis doloribus asperiores repellat.

Looking for something else?

Not the answer you are looking for? Search for more explanations.