Skip to content

Instantly share code, notes, and snippets.

@felipecabargas
Last active December 16, 2015 16:40
Show Gist options
  • Save felipecabargas/5464969 to your computer and use it in GitHub Desktop.
Save felipecabargas/5464969 to your computer and use it in GitHub Desktop.
Módulo y programa para reemplazar puntuación por espacios.
from reemplazar import borrarpuntuacion
entrada = raw_input(">>>")
print borrarpuntuacion(entrada)
def borrarpuntuacion(lin,signos = [".",",",";","(",")",'"']):
largo = len(lin)
for indice in range(largo):
if lin[indice] in signos:
lin= lin.replace(lin[indice],' ')
return lin
@felipecabargas
Copy link
Author

Place both files in the same directory

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment