Question: These Qs by python Question 7 (2 points) Which of the following is true about both lists and sets? 1) in a list, elements are

These Qs by python
 These Qs by python Question 7 (2 points) Which of the
following is true about both lists and sets? 1) in a list,

Question 7 (2 points) Which of the following is true about both lists and sets? 1) in a list, elements are stored in order, in a set they are not stored in any particular order 2) in both a set and a list, elements can be accessed by position 3) both a set and list have operations available for use such as union, difference, and intersection 4) list operations are much faster than the equivalent set operations Save Question 8 (2 points) What is the name of the instance variable in the following code segment? class Fruit: def getColor(self: return self.color 1) color 2) Fruit 3) getColor 4) self Save

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!