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

How did the boundaries of the Byzantine Empire change?
Given the expression: S = lw + wh + hl, solve for h.
This is a constitutional power of Congress. A.) override B.) pardons C.) mandate D.) line-item veto
what was the status of Christianity in the Roman Empire during the first three centuries ad
How did the United States gain control of former Spanish colonies?
Four times the sum of a number and 15 is at least 120. Let x represent the number. Find all possible values for x.
Which is true about alcohol poisoning? A.) It can result from even low blood alcohol content. B.) It occurs only as a result of alcohol addiction. C.) It c
Solve for X.,5(x-3) + 4(x + 3) m 3(x-1)Ox»101-4 1-2
The best explanation for how humans populated the Earth is a. they migrated from Asia to other continents over the last two million years. b. they migrated most
is 0.3 pie a rational or irrational