write a python program to count the number of uppercase and lowercase letters in the given word.
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)
Comments
Leave a comment