12 lines
252 B
Python
12 lines
252 B
Python
class Date:
|
|
def __init__(self, day, month, year):
|
|
self.day = day
|
|
self.month = month
|
|
self.year = year
|
|
|
|
def __str__(self):
|
|
return '{}/{}/{}'.format(self.day, self.month, self.year)
|
|
|
|
d = Date(10, 12, 2008)
|
|
print(d)
|