Question: Part 3 : Data Structures and Objects 1 . Create a list x which contains the values 1 , 2 , and 4 . 2

Part 3: Data Structures and Objects
1. Create a list x which contains the values 1,2, and 4.
2. Using x, create a list q which contains the values 1,2,4,1,2,4,8.
3. Output the values in x and q.
4. Create a list w which contains the integers from 0 to 14(including both 0 and 14).
5. Output the third element in x.
6. Create a list y equal to the second and third elements of q.
7. Change the third element in x to 6.
8. Output q. Did the values in q change when you changed x?

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 Programming Questions!