Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
otra_lista = ["perro", "gato", "conejo"]
try:
otro_indice = otra_lista.index("caballo")
print("caballo está en la posición {} de otra_lista".format(otro_indice))
except:
print("Lo siento, caballo no está en la lista")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment