ohhkwen6660 ohhkwen6660
  • 01-09-2020
  • Computers and Technology
contestada

How to count how many uppercase letters in sentence in python?

Respuesta :

hayhay070809
hayhay070809 hayhay070809
  • 01-09-2020

Answer:

the two count variables to 0. 3. Use a for loop to traverse through the characters in the string and increment the first count variable each time a lowercase character is encountered and increment the second count variable each time a uppercase character is encountered.

Answer Link

Otras preguntas

A bag has 90 fruits in it there are 9 times as many oranges as there are apples. So the bag has how many apples in it?
Hey guys, I need help with this
Why was the Oregon Trail important, and how were people affected by the elements around them like temperature, weather, or lack of supplies.
On a dinner plate, a baked potato always stays hot longer than any other food. Why?
Mary has type A blood. Her son Bill has type AB blood. Which blood type does Bill's dad have if he is homogenous for blood type? a. Blood type A b. Blood type B
The articles of confederation needed to be revamped. Why? What were its problems?
The Russo-Japanese War marked a significant shift in regard to imperial power trends in the early 1900's because
what motivated Rachel Carson to take action and how that action change the American culture or politics???
How do I solve x over 6 + 4+15 ?
The Second Great Awakening began on the southern frontier and usually featured what two religious sects? A. Atheists and Buddhists B. Catholics and Atheists C.