Last active
July 6, 2022 23:13
-
-
Save EmmaG2/3f485860a00814a69f18aa60237464f1 to your computer and use it in GitHub Desktop.
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
nombres = input("Ingresa los nombres, separados por coma: ").split(",") | |
nombre_a_buscar = input("Ingresa el nombre a buscar: ") | |
def buscar_nombre(nombre_buscar): | |
if any(nombre == nombre_buscar for nombre in nombres): | |
return f"nombre encontrado {nombre_buscar}" | |
return f"No se encontro el nombre {nombre_buscar}" | |
print(buscar_nombre(nombre_a_buscar)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment