Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Part 3 : Combining lists and loops. Question 5 : Now we want you to try to use various components of everything you just learned

Part 3: Combining lists and loops.
Question 5: Now we want you to try to use various components of everything you just learned to calculate some values.
The cell below includes two lists of values, x and y. Your task is to initialize one new empty list, addition, iterate through the two lists of values, x and y, using a loop to compute x+y, and store these values in your new list. Once you've computed all the values, print out the results.
Hint: If you take a look at the table in Part 1 that contains information about lists, you see that it mentions adding values to a list using . append (), this is what you'll want to use to fill your addition list. Also, remember that we use ** to compute powers in Python. So "2 squared" would be 2****2.
image text in transcribed

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

More Books

Students also viewed these Databases questions

Question

Factors Affecting Conflict

Answered: 1 week ago

Question

Describe the factors that lead to productive conflict

Answered: 1 week ago

Question

Understanding Conflict Conflict Triggers

Answered: 1 week ago