import string s = input('Enter string: ') count = 0 for i in s: if i in string.punctuation: count += 1 print(count)
Need a fast expert's response?
and get a quick answer at the best price
for any assignment or question with DETAILED EXPLANATIONS!
Comments
Leave a comment