Waiting for answer This question has not been answered yet. You can hire a professional tutor to get the answer.

QUESTION

Hello, thank you in advance for your help. I'm a new computer science student working on an assignment. I've

def deep_list (seq) :""Returns a new list containing elements of the original list that are lists.>>> seq = [49, 8, 2, 1, 102]>>> deep_list(seq) >>> seq = [[500] , [30, 25, 24], 8, [0]]>>> deep_list (seq)[ [500], [30, 25, 24], [0]]>>> seq = ["hello", [12, [25], 24], 8, [0]]>>> deep_list(seq)[ [12, [25], 24], [0]]return [i if type(x) == list for i in seq]

Show more
LEARN MORE EFFECTIVELY AND GET BETTER GRADES!
Ask a Question