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

Method __le__

divide_and_conquer/convex_hull.py:74–79  ·  view source on GitHub ↗
(self, other)

Source from the content-addressed store, hash-verified

72 return False
73
74 def __le__(self, other):
75 if self.x < other.x:
76 return True
77 elif self.x == other.x:
78 return self.y <= other.y
79 return False
80
81 def __repr__(self):
82 return f"({self.x}, {self.y})"

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected