MCPcopy Create free account
hub / github.com/geekcomputers/Python / compute

Method compute

file_handle/File handle text/counter.py:30–35  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

28 self.compute()
29
30 def compute(self) -> None:
31 for char in self.text:
32 if char.islower():
33 self.count_lower += 1
34 elif char.isupper():
35 self.count_upper += 1
36
37 def get_total_lower(self) -> int:
38 return self.count_lower

Callers 1

__init__Method · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected