Count Uppercase Lowercase Problem

Count Uppercase Lowercase Problem — ExecCode School DSA Practice

Solve the Count Uppercase Lowercase problem on ExecCode. Free online school DSA practice in Strings - Basics. Write and run code in Java, C++, Python — no signup required to run.

Problem description

Given a string, count how many uppercase letters and how many lowercase letters it contains. Your task is to solve Count Uppercase Lowercase. Print these two counts separated by a space.

Examples

Input Hello World; Output 2 8. Input Hello World; Output 2 8

Constraints

1 <= len(S) <= 10^4

Practice Count Uppercase Lowercase free on ExecCode. Browse DSA problems, topic map, and placement guides.