logo

Crowdly

Browser

Add to Chrome

Given the following code : def multipleOf10 ( x ) : """ x -- int...

✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.

Given the following code :

def multipleOf10(x):

"""

x -- integer

return true if x is a multiple of 10, False otherwise

"""

return x%10 == 0

def filter(my_list, my_function):

"""

my_list -- a list of integers

my_function -- a function that returns a boolean and receives an int

returns the list of results from my_function applied on the list my_list

"""

return [elt for elt in liste if fonction(elt)]

What is the output of filter([i*j for i in range(1,10) for j in range(1,10)], multipleOf10) ?

0%
0%
0%
0%
More questions like this

Want instant access to all verified answers on moodle.esme.fr?

Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!

Browser

Add to Chrome