-
-
Save parzibyte/702e9311369dce9542b236a390a517e9 to your computer and use it in GitHub Desktop.
This file contains 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
""" | |
Saber si es un número neutro, positivo o negativo en Python | |
@author parzibyte | |
""" | |
numero_como_cadena = input("Escribe un número: ") | |
numero = float(numero_como_cadena) | |
if numero == 0: | |
print("Neutro") | |
elif numero < 0: | |
print("Negativo") | |
else: | |
print("Positivo") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment