Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #USO DE METODOS CON IF == Edad uso if 1, uso if 2 y numposneg uso if 3
- def Numero (num):
- if num > 0:
- return "Es positivo"
- elif num < 0:
- return "Es negativo"
- elif num == 0:
- return "Es un cero"
- num = input("Dame el numero:")
- print(Numero(num))
- """ print "Dame el valor"
- a = int(input(""))
- if a > 0:
- print "Es un numero positivo"
- elif a == 0:
- print "El numero es cero"
- else:
- print "Es numero negativo" """
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement