Skip to content

Commit

Permalink
Implementa procura_menor.
Browse files Browse the repository at this point in the history
  • Loading branch information
rafasgj committed Mar 20, 2024
1 parent 6eef737 commit 93d8724
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/zero.py
Expand Up @@ -10,3 +10,8 @@ def procura_maior(lista):
if item > maior:
maior = item
return maior


def procura_menor(lista):
"""Retorna o menor item da lista."""
return min(lista)

0 comments on commit 93d8724

Please sign in to comment.