File tree Expand file tree Collapse file tree 1 file changed +17
-1
lines changed Expand file tree Collapse file tree 1 file changed +17
-1
lines changed Original file line number Diff line number Diff line change @@ -67,6 +67,22 @@ lower = sum(1 for i in word if i.islower())
6767
6868print (" UPPER CASE {0} \n LOWER CASE {1} " .format(upper,lower))
6969```
70+ ** OR**
71+ ``` python
72+ # solution by Amitewu
73+
74+ string = input (" Enter the sentense" )
75+ upper = 0
76+ lower = 0
77+ for x in string:
78+ if x.isupper() == True :
79+ upper += 1
80+ if x.islower() == True :
81+ lower += 1
82+
83+ print (" UPPER CASE: " , upper)
84+ print (" LOWER CASE: " , lower)
85+ ```
7086----------------------
7187# Question 15
7288
@@ -121,4 +137,4 @@ print(total)
121137
122138[ *** go to next day*** ] ( https://github.com/darkprinx/100-plus-Python-programming-exercises-extended/blob/master/Status/Day%205.md " Day 5 ")
123139
124- [ *** Discussion*** ] ( https://github.com/darkprinx/100-plus-Python-programming-exercises-extended/issues/3 )
140+ [ *** Discussion*** ] ( https://github.com/darkprinx/100-plus-Python-programming-exercises-extended/issues/3 )
You can’t perform that action at this time.
0 commit comments