/eliminar.py Secret
Created
December 21, 2020 04:11
Star
You must be signed in to star a gist
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
nombre_articulo = input("Nombre del artículo que se elimina: ") | |
if nombre_articulo in nombres: | |
indice = nombres.index(nombre_articulo) | |
del nombres[indice] | |
del precios[indice] | |
del cantidades_vendidas[indice] | |
print(f"Se elimina {nombre_articulo}") | |
else: | |
print("El artículo no existe") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment