Skip to content

Commit d800b6d

Browse files
authored
Update README.md
1 parent 3dda56b commit d800b6d

File tree

1 file changed

+22
-9
lines changed

1 file changed

+22
-9
lines changed
Lines changed: 22 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,22 @@
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.

0 commit comments

Comments
 (0)