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

Method __le__

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

Source from the content-addressed store, hash-verified

345 return NotImplemented
346
347 def __le__(self, other):
348 if isinstance(other, PokerHand):
349 return self < other or self == other
350 return NotImplemented
351
352 def __gt__(self, other):
353 if isinstance(other, PokerHand):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected