Answer to Question #237761 in Python for Raju

Question #237761

write a python program to count the number of uppercase and lowercase letters in the given word.


1
Expert's answer
2021-09-15T17:18:15-0400
uppercase = 0
lowercase = 0
for ch in input():
    if ch.isupper():
        uppercase += 1
    elif ch.islower():
        lowercase += 1
print('Uppercase letters:', uppercase)
print('Lowercase letters:', lowercase)

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