13 lines
333 B
Python
13 lines
333 B
Python
# HumanEval/52
|
|
# Loki Mode Multi-Agent Solution
|
|
# Attempts: 1
|
|
# Passed: True
|
|
|
|
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) |