Advertisement
hackloper775

Ejemplo1

Dec 29th, 2012
152
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.40 KB | None | 0 0
  1. #!/usr/bin/env python
  2.  
  3. x = 1
  4.  
  5. while x == 1:
  6.  
  7.     print ("Tenemos dos caminos: ")
  8.  
  9.     print ("[1].Salir","\n[2].Continuar")
  10.  
  11.     seleccion = input("Elige uno 1/2 : ")
  12.  
  13.     sel = int(seleccion)
  14.  
  15.     if sel == 1:
  16.         print ("Adios")
  17.         x = 2
  18.     elif sel == 2:
  19.         print ("Bien seguimos en el juego")
  20.         print ("No era un buen camino yo me voy :P ")
  21.         x = 2
  22.     else:
  23.         print ("Opcion invalida intenta de nuevo: ")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement