File tree Expand file tree Collapse file tree 1 file changed +22
-9
lines changed
exercises/33-number-of-uppercase Expand file tree Collapse file tree 1 file changed +22
-9
lines changed Original file line number Diff line number Diff line change 1- Write a program that accepts a sentence and calculate the number of upper case letters and lower case letters.
2- Suppose the following input is supplied to the program:
3- Hello world!
4- Then, the output should be:
5- UPPER CASE 1
6- LOWER CASE 9
7-
8- Hints:
9- In case of input data being supplied to the question, it should be assumed to be a console input.
1+ # ` 30 ` Number of uppercase
2+
3+ ## 📝 Instructions:
4+
5+ 1 . Write a program ` number_of_uppercase() ` that accepts a sentence and calculates the number of uppercase and lowercase letters.
6+
7+ ## 📎 Example input:
8+
9+ ``` py
10+ number_of_uppercase(" Hello world!" )
11+ ```
12+
13+ ## 📎 Example output:
14+
15+ ``` text
16+ UPPERCASE 1
17+ LOWERCASE 9
18+ ```
19+
20+ ## 💡 Hint:
21+
22+ + Declare a dictionary for storing both counts in one variable.
You can’t perform that action at this time.
0 commit comments