Question #264606

  1. Write a program to count the characters that are not words, integers, spaces  

Expert's answer

import string
s = input('Enter string: ')
count = 0
for i in s:
	if i in string.punctuation:
		count += 1
print(count)
LATEST TUTORIALS
APPROVED BY CLIENTS