class Data:
def __int__(self, dia, mes, ano):
self.dia = dia
self.mes = mes
self.ano = ano
print("Formatando data {}".format(self.dia))
def formatar(self):
print("data: {}/{}/{}".format(self.dia, self.mes, self.ano))
d = Data(21, 12, 2021)
Traceback (most recent call last): File "C:\Users\Francisco Otacilio\AppData\Local\Programs\Python\Python310\lib\code.py", line 90, in runcode exec(code, self.locals) File "", line 1, in TypeError: Data() takes no arguments