Answer to Question #264606 in Python for swsq

Question #264606
  1. Write a program to count the characters that are not words, integers, spaces  
1
Expert's answer
2021-11-18T06:57:32-0500
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?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS