We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 95a9957 commit daf0368Copy full SHA for daf0368
file_handle/File handle text/counter.py
@@ -10,6 +10,15 @@
10
11
## ! What will be test cases of it?
12
# ! Please do let me know.
13
+## ! Can add is digit, isspace methods too later on.
14
+# ! Based on requirements of it
15
+
16
17
18
+## ! The questions are nothing but test-cases
19
+## ! Make a test thing and handle it.
20
+# does it count only alphabets or numerics too?
21
+# ? what about other characters?
22
class Counter:
23
def __init__(self, text: str) -> None:
24
self.text = text
@@ -24,6 +33,7 @@ def compute(self) -> None:
33
self.count_lower += 1
25
34
elif char.isupper():
26
35
self.count_upper += 1
36
27
37
def get_total_lower(self) -> int:
28
38
return self.count_lower
29
39
0 commit comments