I tried to use string.punctuation function in python.I doing it in python 3.5 version. This is my following code:
import string
def check(text):
x=set(text.punctuation())
I am getting following error
'str' object has no attribute 'punctuation'
PLease help with the correct way of using this.I even tried using ispunct() fucntion.
I tried for solving this as shown in the link below,but couldn't figure it out.