Question: Say we have a list of lists: nested_lists = [ [1, 2, 3], [a, b, c], [30, 1], ] What would be the resulting
Say we have a list of lists: nested_lists = [ [1, 2, 3], ["a", "b", "c"], [30, 1], ] What would be the resulting list of the following list comprehension? [sublist[0] for sublist in nested_lists if 1 in sublist] [1, 30] [[1,2,3], [30, 1]] [[1, 2, 3], ["a", "b", "c"], [30, 1], []] [1, 2, 3]
Step by Step Solution
There are 3 Steps involved in it
Answer The answer is A 1 30 Explanation for sublist in ne... View full answer
Get step-by-step solutions from verified subject matter experts
