Question: Consider a method named biggerThan that (1) takes two arguments - a list of ints named a and a single int named thresh; and then

Consider a method named biggerThan that (1) takes two arguments - a list of ints named a and a single int named thresh; and then (2) returns a new list containing the elements from a that are > thresh; or None if there are no elements.

What should biggerThan return when called with a list a equal to [1, 2, 4, 6, 7, 8] and thresh set to 4? [1]

Provide example arguments a and thresh such that biggerThan should return a None. [1]

Write the method in correct, executable, Python. [3]

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 Databases Questions!