13 lines
278 B
Python
13 lines
278 B
Python
# HumanEval/35
|
|
# Loki Mode Multi-Agent Solution
|
|
# Attempts: 1
|
|
# Passed: True
|
|
|
|
def max_element(l: list):
|
|
"""Return maximum element in the list.
|
|
>>> max_element([1, 2, 3])
|
|
3
|
|
>>> max_element([5, 3, -5, 2, -3, 3, 9, 0, 123, 1, -10])
|
|
123
|
|
"""
|
|
return max(l) |