Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import sys
- Lista =["Huevo","Carne","Leche","Pan Bimbo","Chetos","Sabritas","Fritos","Doritos","Tortillas","Tortillas de Harina","Chokis"]
- Articulos = {}
- def Agregar_Costo():
- for producto in Lista:
- Articulos[producto] = float(input("Agregue el precio de " + producto + ": "))
- print(Articulos,"\n")
- def Mostrar_Inventario():
- for x in Articulos:
- print("Estos son sus articulos: ")
- print(x)
- def Menu():
- Opcion= ""
- while (Opcion != "3"):
- print("*******Bienvenido a la tienda de Doña Pelos******")
- print()
- print("""
- [1] Agregar Costo
- -----------------
- [2] Mostrar Inventario
- --------------------
- [3] Salir
- """)
- Opcion =input("Seleccione una opcion: ")
- if Opcion == "1":
- Agregar_Costo()
- elif Opcion == "2":
- Mostrar_Inventario()
- print("Que tenga un buen dia")
- Menu()
Add Comment
Please, Sign In to add comment