import datetime
class date:
def __init__(self,data):
self.data=data
x=datetime.date.today().year
return x
y=date('data')
I tried to show data: 'todays date:26 june' but it shows __init__() should return None, not int
. What seems to be the problem here?