Smallest without min · Menor sem 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.
Menor sem min
Retorne o menor número em uma lista sem usar min.
É a imagem espelhada do exercício anterior: comece com o primeiro item e substitua-o sempre que encontrar um menor.
Write smallest(nums) that returns · decrescentes the smallest number in the list, without using min. · Escreva smallest(nums) que retorna o menor número na lista, sem usar min.
Click Run to see the output here. · Clique em Executar para ver a saída aqui.