Answer to Question #264942 in Python for Bujji

Question #264942

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


1
Expert's answer
2021-11-12T00:55:04-0500
# get the string from the user
inputString =input("");
symbols=0
# Looping through a string.
for letter in inputString:
    if (letter.isdigit()==False and letter.isalpha()==False and letter!=" "):
        symbols+=1
# Display a new string.
print(f"The characters that are not words, integers, spaces: {symbols}")

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