Question: is_included: given two lists of integers as input, it returns True if the second one is a subset of the first one, False otherwise. Note

 is_included: given two lists of integers as input, it returns True

is_included: given two lists of integers as input, it returns True if the second one is a subset of the first one, False otherwise. Note that once again, the order in which the elements appear in both list is not important. For example: >>> n = [1, 2, 4, 5, 5, 5] >>> m1 = [1, 5, 5, 5] >>> is includedn, mi) True >>> # it remains the sane after the function execution [1, 2, 4, 5, 5, 5] >>> ni w it remains the sane after the function execution [1, 5, 5, 5] >>> n2 = [1, 1] >>> is included in, m2) False

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!