Skip to content

Instantly share code, notes, and snippets.

@jurandysoares
Created February 12, 2025 04:58
Show Gist options
  • Save jurandysoares/67f8865ad3c201d2d861287b513c1708 to your computer and use it in GitHub Desktop.
Save jurandysoares/67f8865ad3c201d2d861287b513c1708 to your computer and use it in GitHub Desktop.
Positivo, negativo ou nulo?
def positivo_negativo_nulo(n: float) -> str:
if n>0:
return 'positivo'
elif n<0:
return 'negativo'
else:
return 'nulo'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment