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

Method __init__

strings/top_k_frequent_words.py:24–26  ·  view source on GitHub ↗
(self, word: str, count: int)

Source from the content-addressed store, hash-verified

22@total_ordering
23class WordCount:
24 def __init__(self, word: str, count: int) -> None:
25 self.word = word
26 self.count = count
27
28 def __eq__(self, other: object) -> bool:
29 """

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected