Given a string needs to count the characters except number,small letters,ipper letters and spaces?
Eg i/p- ancSddhk#adjdl
O/p-3
1
Expert's answer
2021-08-23T13:39:35-0400
inputString=input("Enter string: ")
characters =0
for l in inputString:
if not l.isupper()and not l.islower() and not l.isdigit() and l!=' ':
characters+= 1
print(f'Special characters: {characters}')
Numbers and figures are an essential part of our world, necessary for almost everything we do every day. As important…
APPROVED BY CLIENTS
"assignmentexpert.com" is professional group of people in Math subjects! They did assignments in very high level of mathematical modelling in the best quality. Thanks a lot
Comments
Leave a comment