Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Con Metodo Numero def Numero
- def Numero (num):
- if num > 0:
- return "Es positivo"
- elif num < 0:
- return "Es Negativo"
- elif num == 0:
- return "Es Cero"
- num=input("Dame el numero:")
- print(Numero(num))
- #Sin metodo
- """print "Dame un valor:"
- a = int(input(""))
- if a > 0:
- print "Es Positivo"
- elif a == 0:
- print "Es Cero"
- else:
- print "Es Negativo"
- """
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement