find_punct
find_punct(text)
Retrieve punctuations from sentence.
Parameters
text: str Text selected to apply transformation
Examples:
example="Corona virus have kiled #24506 confirmed cases now.#Corona is un(tolerable)"
print(find_punct(example))
>>> ['#', '.', '#', '(', ')']