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

Method __lt__

project_euler/problem_054/sol1.py:342–345  ·  view source on GitHub ↗
(self, other)

Source from the content-addressed store, hash-verified

340 return NotImplemented
341
342 def __lt__(self, other):
343 if isinstance(other, PokerHand):
344 return self.compare_with(other) == "Loss"
345 return NotImplemented
346
347 def __le__(self, other):
348 if isinstance(other, PokerHand):

Callers

nothing calls this directly

Calls 1

compare_withMethod · 0.95

Tested by

no test coverage detected