Smallest without min · Más pequeño sin min
Smallest without min
Return the smallest number in a list without using min.
It is the mirror image of the previous drill: start with the first item and replace it whenever you meet a smaller one.
Más pequeño sin min
Devuelve el número más pequeño de una lista sin usar min.
Es la imagen especular del ejercicio anterior: comienza con el primer elemento y reemplázalo cada vez que encuentres uno más pequeño.
Write smallest(nums) that returns · retornos the smallest number in the list, without using min. · Escribe smallest(nums) que devuelva el número más pequeño de la lista, sin usar min.
Click Run to see the output here. · Haz clic en Ejecutar para ver la salida aquí.