Skip to content

Commit daf0368

Browse files
add comments
1 parent 95a9957 commit daf0368

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

file_handle/File handle text/counter.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,15 @@
1010

1111
## ! What will be test cases of it?
1212
# ! 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?
1322
class Counter:
1423
def __init__(self, text: str) -> None:
1524
self.text = text
@@ -24,6 +33,7 @@ def compute(self) -> None:
2433
self.count_lower += 1
2534
elif char.isupper():
2635
self.count_upper += 1
36+
2737
def get_total_lower(self) -> int:
2838
return self.count_lower
2939

0 commit comments

Comments
 (0)