MCPcopy Index your code
hub / github.com/geekcomputers/Python / count

Method count

1 File handle/File handle text/counter.py:18–25  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

16 self.count()
17
18 def count(self) -> None:
19 for char in self.text:
20 if char.lower():
21 self.count_lower += 1
22 elif char.upper():
23 self.count_upper += 1
24
25 return (self.count_lower, self.count_upper)
26
27 def get_total_lower(self) -> int:
28 return self.count_lower

Callers 14

__init__Method · 0.95
is_square_freeFunction · 0.80
text_file_replaceFunction · 0.80
printtFunction · 0.80
kgVFunction · 0.80
test_zeroVectorMethod · 0.80
wordle.pyFile · 0.80
dict1.pyFile · 0.80
check_first_letterFunction · 0.80
check_first_letterFunction · 0.80
_insertFunctionMethod · 0.80

Calls

no outgoing calls

Tested by 1

test_zeroVectorMethod · 0.64