Question: What will the following code print? def mystery ( num _ list ) : out = [ ] for num in num _ list: if

What will the following code print?
def mystery(num_list): out =[] for num in num_list: if num >10: out.append(num) return out print(mystery([5,10,15,20]))
Group of answer choices
[10,15,20]
[20,15]
[15,20]
[20,15,10]

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!