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

Method __init__

file_handle/File handle text/counter.py:23–28  ·  view source on GitHub ↗
(self, text: str)

Source from the content-addressed store, hash-verified

21# ? what about other characters?
22class Counter:
23 def __init__(self, text: str) -> None:
24 self.text = text
25 # Define the initial count of the lower and upper case.
26 self.count_lower = 0
27 self.count_upper = 0
28 self.compute()
29
30 def compute(self) -> None:
31 for char in self.text:

Callers

nothing calls this directly

Calls 1

computeMethod · 0.95

Tested by

no test coverage detected