2021-07-25 19:15:02 +02:00
|
|
|
class User:
|
|
|
|
def __init__(self, name, address):
|
|
|
|
self.name = name
|
|
|
|
self.address = address
|
|
|
|
|
2022-12-01 21:09:39 +01:00
|
|
|
def __repr__(self):
|
2023-02-20 15:55:20 +01:00
|
|
|
return f"<{type(self).__name__} {self.name} {self.address}>"
|
2022-12-01 21:09:39 +01:00
|
|
|
|
2021-07-25 19:15:02 +02:00
|
|
|
|
|
|
|
class Address:
|
|
|
|
def __init__(self, street, nr):
|
|
|
|
self.street = street
|
2022-12-01 21:09:39 +01:00
|
|
|
self.nr = nr
|
|
|
|
|
|
|
|
def __repr__(self):
|
2023-02-20 15:55:20 +01:00
|
|
|
return f"<{type(self).__name__} {self.street} {self.nr}>"
|