My Advent of Code solutions in Python. kevinyap.ca/2019/12/going-fast-in-advent-of-code/
advent-of-code python
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Add __repr__ method to Point class

+3
+3
2017/utils.py
··· 126 126 def __str__(self): 127 127 return "({}, {})".format(self.x, self.y) 128 128 129 + def __repr__(self): 130 + return "Point({}, {})".format(self.x, self.y) 131 + 129 132 def __hash__(self): 130 133 return hash(tuple((self.x, self.y))) 131 134