Created
February 12, 2025 04:58
-
-
Save jurandysoares/67f8865ad3c201d2d861287b513c1708 to your computer and use it in GitHub Desktop.
Positivo, negativo ou nulo?
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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