Question: 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.
 Part 3: Combining lists and loops. Question 5: Now we want

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!