Skip to content

Instantly share code, notes, and snippets.

@parzibyte
Created December 21, 2020 04:11
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save parzibyte/4aa44a99fc2686d81655457574147102 to your computer and use it in GitHub Desktop.
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