Created
November 13, 2019 20:37
-
-
Save obedespinoza/9ae5cbf7c316b83539209c3dfd566bd4 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from dataclasses import dataclass | |
@dataclass | |
class Coordinates: | |
x: int | |
y: int | |
def __str__(self): | |
return f"({self.x},{self.y})" | |
def __rpr__(self): | |
return f"Coordinates: ({self.x}, {self.y})" | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment