Files
2026-05-31 05:37:10 +00:00

8 lines
255 B
Python

def below_threshold(l: list, t: int):
"""Return True if all numbers in the list l are below threshold t.
>>> below_threshold([1, 2, 4, 10], 100)
True
>>> below_threshold([1, 20, 4, 10], 5)
False
"""
return all(x < t for x in l)