Answered step by step
Verified Expert Solution
Question
1 Approved Answer
[ ] def exercise_3 (my_list): Assume `my_list is a list of lists, the sublists are all lists of ints Return a list Goal: flatten `my_list'
[ ] def exercise_3 (my_list): Assume `my_list" is a list of lists, the sublists are all lists of ints Return a list Goal: "flatten" `my_list' from a list of lists in to a SORTED list containing all of the elements of the sublists ### BEGIN SOLUTION ### END SOLUTION assert exercise_3([[1, 2, 3], [4, 5, 6]]) == [1, 2, 3, 4, 5, 6] assert exercise_3([[1, 1, 1, 1, 1]]) == [1, 1, 1, 1, 1] assert exercise_3([[1], [2], [4], [6, 7]]) == [1, 2, 4, 6, 7]
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started