Find the Lowest
Finding the minimum helps you spot the lowest price, the weakest result, or the lower edge of your data. The function min_list receives a non-empty list of numbers nums. Return the smallest number in the list, but do not use the built-in min function.
Примеры
Ввод
[3, 1, 2]Вывод
1Ввод
[-1, -5, -3]Вывод
-5Ввод
[7]Вывод
7Нужно реализовать
def min_list(nums: list[int]) -> int:
Теги
lists
Přihlaste se, abyste viděli historii odevzdání
Přihlásit sePřihlaste se, abyste mohli použít AI mentora
Přihlásit seVisible tests
1
Input
[3,1,2]Expected
12
Input
[-1,-5,-3]Expected
-53
Input
[7]Expected
74
Input
[4,4,4]Expected
45
Input
[9,1,8,0]Expected
06
Input
[0,0,0]Expected
0Focus radio
Paused · SomaFM · Fluid