Верните наибольший элемент непустого списка nums.
nums
[1,5,3]
5
[-2,-7,-1]
-1
[42]
42
def max_in_list(nums: list[int]) -> int:
Sign in to see submission history
Sign in to use AI Mentor
Your code output will appear here