Answers for "list of punctuation in python"

1

python punctuation

import string 
print (string.punctuation)          # !"#$%&'()*+,-./:;<=>?@[]^_`{|}~
sentence = "Hey guys !, How are 'you' ?"
for i in sentence:
    if i in string.punctuation:
        print(i)  	 				# ! , ' ' ?
Posted by: Guest on May-21-2021
0

punctuation list python

import string

punc_list = string.punctuation #returns a list of punctuation
Posted by: Guest on March-17-2021

Code answers related to "list of punctuation in python"

Python Answers by Framework

Browse Popular Code Answers by Language