logo

Crowdly

Browser

Додати до Chrome

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

✅ Перевірена відповідь на це питання доступна нижче. Наші рішення, перевірені спільнотою, допомагають краще зрозуміти матеріал.

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%
Більше питань подібних до цього

Хочете миттєвий доступ до всіх перевірених відповідей на moodle.esme.fr?

Отримайте необмежений доступ до відповідей на екзаменаційні питання - встановіть розширення Crowdly зараз!

Browser

Додати до Chrome