Question from the Python - Fundamentals test

Write a Python function that returns a list of numbers divisible by 3 from 0 to 9.

Hard

What is the return value of the following function ?

def f():
	a = [x for x in range(10)]
	return list(filter(lambda x: x%3, a))
Author: ThéoStatus: PublishedQuestion passed 1416 times
Edit
1
Community Evaluations
developer avatar
sara
12/01/2024
Il faut ajouter une ligne où on appelle la fonction f(). Si on l'appelle pas, il se passera rien !