|
|
|
|
|
by muhuk
4178 days ago
|
|
Or this: class Window(object):
def __init__(self, minimum, maximum):
self.minimum = min(minimum, maximum)
self.maximum = max(minimum, maximum)
Why set attributes twice? AFAIAC you only need to write "self." once for each attribute in the constructor. |
|