Answered step by step
Verified Expert Solution
Link Copied!

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'

image text in transcribed

[ ] 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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions

Question

Multiple Choke 5183274 51.835.56 \$183798 5186940 5183419

Answered: 1 week ago