Está en la página 1de 69

HERMAN HAMILTON GUERRERO CHAPAL9:55 Chronos — hoy a las 9:57

from os import system from os import system


OPC=0 OPC=0
while OPC!=4: while OPC!=4:
OPC_1="" OPC_1=""
INTENTOS=0 INTENTOS=0
system("clear") system("clear")
print("MENU") print("MENU")
print("1 PRIMERA OPCIÓN") print("1 PRIMERA OPCIÓN")
print("2 SEGUNDA OPCIÓN") print("2 SEGUNDA OPCIÓN")
print("3 TERCERA OPCIÓN") print("3 TERCERA OPCIÓN")
print("4 SALIR") print("4 SALIR")
while OPC_1.isnumeric()==False: while OPC_1.isnumeric()==False:
INTENTOS=INTENTOS+1 INTENTOS=INTENTOS+1
print("intento ",INTENTOS) print("intento ",INTENTOS)
OPC_1=input("escoja opción valida ") OPC_1=input("escoja opción valida ")
if INTENTOS>=4: if INTENTOS>=4:
print(" fin programa") print(" fin programa")
break break
if INTENTOS>=4: if INTENTOS>=4:
break break
OPC=int(OPC_1) OPC=int(OPC_1)
if OPC==1: if OPC==1:
print(" ejecutar instrucciones primera opc print("ejecutar instrucciones primera opcion
elif OPC==2:
print("ejecutar instrucciones segunda opcion
elif OPC==3:
print("ejecutar instrucciones tercera opcion
elif OPC==4:
print("fin programa")
break
else:
print("dato no valido")
input("presione enter para continuar")
VISITAR ALEJO LOPERA CANAL DE YOUTUBE INGLES
INGLES

https://www.gamestolearnenglish.com/conditional-sentences/
ERA OPCIÓN")
NDA OPCIÓN")
ERA OPCIÓN")

snumeric()==False:
NTENTOS+1
o ",INTENTOS)
t("escoja opción valida ")

ar instrucciones primera opcion")

ar instrucciones segunda opcion")

ar instrucciones tercera opcion")

ne enter para continuar")


TUBE INGLES

También podría gustarte