Skip to content

Instantly share code, notes, and snippets.

@parzibyte
Created May 19, 2021 15:02
Show Gist options
  • Save parzibyte/22240780cc04b941c373863a125af071 to your computer and use it in GitHub Desktop.
Save parzibyte/22240780cc04b941c373863a125af071 to your computer and use it in GitHub Desktop.
def remover_caracteres_especiales(cadena):
cadena = cadena.lower()
cadena = cadena.replace(" ", "")
cadena = cadena.replace("á", "a")
cadena = cadena.replace("é", "e")
cadena = cadena.replace("í", "i")
cadena = cadena.replace("ó", "o")
cadena = cadena.replace("ú", "u")
return cadena
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment