import os def verificar(dato): while dato == "": print("Error, valor vacio!") dato = input("Ingrese nuevamente: ") return dato def convertir(valor): while valor.isdecimal() == False: print("Error, solo numeros enteros") valor = input("Ingrese nuevamente: ") valor = int(valor) return valor def menu(): print( """ McDowell´s Recuerda que siempre hay que recibir al cliente con una sonrisa :) 1 – Ingreso de nuevo pedido 2 – Cambio de turno 3 – Apagar sistema """) #################################################################################################### while True: print("Bienvenido a McDowell´s ") encargado = input("Ingrese su nombre encargad@: ") menu() opcion = input(">>> ") opcion = verificar(opcion) opcion = convertir(opcion) csimple = 650 cdoble = 700 ctriple = 800 flurby = 250 while opcion == 1: s = input("Ingrese cantidad Combo S: ") s = verificar(s) s = convertir(s) d = input("Ingrese cantidad Combo D: ") d = verificar(d) d = convertir(d) t = input("Ingrese cantidad Combo T: ") t = verificar(t) t = convertir(t) f = input("Ingrese cantidad Flurby: ") f = verificar(f) f = convertir(f) totals = s*csimple totald = d*cdoble totalt = t*ctriple totalf = f*flurby total_total = totals + totald + totalt + totalf print("total:", total_total) abona = input("Abona con $ >>> ") abona = verificar(abona) abona = convertir(abona) vuelto = abona - total_total print("vuelto: ", vuelto) menu() opcion = input(">>> ") opcion = verificar(opcion) opcion = convertir(opcion) os.system("cls") if opcion == 2: pass elif opcion == 3: print("adios") break