equals method
Leave feedback
On this page
Determines whether the current Point is the same as the specified object.
def equals(self, obj):
...
| Parameter | Type | Description |
|---|---|---|
| obj | Any |
The object to compare with the current Point object. |
Returns: bool: True if obj is a Point and is the same as the current Point object; otherwise, False.
Determines whether the current Point equals the specified Point.
def equals(self, other):
...
| Parameter | Type | Description |
|---|---|---|
| other | Point |
The object to compare with the current Point. |
Returns: bool: True if both Point objects are the same; otherwise False.
- class
Point
Was this page helpful?
Any additional feedback you'd like to share with us?
Please tell us how we can improve this page.
Thank you for your feedback!
We value your opinion. Your feedback will help us improve our documentation.