Solutions will be available when this assignment is resolved, or after a few failing attempts.

Divisible numbers comprehension

Write a function that receives a list of numbers and a term 'n' and returns only the elements that are divisible by that term 'n'. You must use List comprehensions to solve it.

divisible_numbers([9, 8, 7, 6, 5, 4, 3, 2, 1], 3)  == [9, 6, 3]

Test Cases


def divisible_numbers(a_list, term): pass