Question: Please show me how to complete the code for Q2 and Q3 # Q2 Complete the following function: def no_extra_members(group_list: List[List[int]], class_list: List[int]) -> bool:

Please show me how to complete the code for Q2 and Q3
# Q2 Complete the following function: def no_extra_members(group_list: List[List[int]], class_list: List[int]) -> bool: Return True iff every student in group list is a member of class_list. >>> no_extra_members([[1, 3, 4], [2]], [1, 2, 3, 4]) True >>> no_extra_members([[1, 2], [3, 4]], [1, 2, 4]) False # YOUR CODE HERE pass # Q3 Complete the following function: def col_sums (1st: List[List[int]])-> List[int]: Return a new list that contains the sum of each column in 1st. All columns in 1st are of the same length. >>> col_sums([[5, 10, 15], [1, 2, 3]]) [6, 12, 18] # YOUR CODE HERE pass Type here to search
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
