@@ -0,0 +1,31 @@
1+#!/usr/bin/env python3
2+
3+
4+# Question 14
5+# Level 2
6+
7+# Question:
8+# Write a program that accepts a sentence and calculate the number of upper case letters
9+# and lower case letters.
10+# Suppose the following input is supplied to the program:
11+# Hello world!
12+# Then, the output should be:
13+# UPPER CASE 1
14+# LOWER CASE 9
15+
16+# Hints:
17+# In case of input data being supplied to the question, it should be assumed to be a console input.
18+
19+
20+sentence = input("Enter a sentence with upper and lower case letters:\n")
21+upper_count = 0
22+lower_count = 0
23+
24+for c in sentence:
25+ if c.isupper():
26+ upper_count = upper_count + 1
27+ elif c.islower():
28+ lower_count = lower_count + 1
29+
30+print("UPPER CASE", upper_count)
31+print("LOWER CASE", lower_count)