Given a line of text as input, output the number of characters excluding spaces, periods, or commas.
Ex: If the input is: 'Listen, Mr. Jones, calm down.'
the output is: 21
Note: Account for all characters that aren't spaces, periods, or commas (Ex: "r", "2", "!").
+4
Answers (1)
Know the Answer?
Not Sure About the Answer?
Find an answer to your question 👍 “Python Question: trying to get this down but im just stuck. Heres the question: Given a line of text as input, output the number of ...” in 📗 Computers & Technology if the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Home » Computers & Technology » Python Question: trying to get this down but im just stuck. Heres the question: Given a line of text as input, output the number of characters excluding spaces, periods, or commas. Ex: If the input is: 'Listen, Mr. Jones, calm down.