for char in line:     if char in " ?.!/;:":         line.replace(char,'')

Read more of this post