Advertisement
hackloper775

Ejemplo Py 2

Dec 29th, 2012
127
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.29 KB | None | 0 0
  1. #!/bin/usr/env python
  2.  
  3. x = input("Elige un numero entre 0/3: " )
  4.  
  5. y = int(x)
  6.  
  7. if y == 1:
  8.     print ("Es uno")
  9. elif y == 2:
  10.     print ("Es dos")
  11. elif y > 3:
  12.     print ("Es mayor a 3 :(")
  13. elif y == 0:
  14.     print("Es 0")
  15. elif y == 3:
  16.     print("Es tres :D")
  17. else:
  18.     print ("Entre el 1 y 3!!! ")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement