trinar66 trinar66
  • 20-12-2020
  • Computers and Technology
contestada

Given a line of text as input, output the number of characters excluding spaces, periods, or commas. If the input is:
Listen, Mr. Jones, calm down. The output is 21

Respuesta :

Cytokine
Cytokine Cytokine
  • 21-12-2020

In python 3.8:

print(len([x for x in input("Enter your text: ") if x not in "., "]))

I hope this helps!

Answer Link

Otras preguntas

A researcher is investigating the effect of Paxil in treating PTSD in veterans. He does a search throughout the US and gets 1000 veterans to receive the Paxil;
Which equation represents a hyperbola shown in the graph?
4 bullet points lessons learned from the cold war
Choose all the answers that apply. In a balanced ecosystem the number of _____. producers is greater than the number of consumers consumers is greater than the
Find the value of x. ​
What’s the answer to this
SOMEONE PLS HELP ): Spell "23,000". trente-trois mille vingt trois mille trente-trois milles vingt-trois mille
In the theory of plate tectonics, various segments of Earths crust, called plates, move toward and away from each other. In one instance, the plate that consist
What is the volume of the right cone below?
How did economic structures differ in ancient societies?