class Data:
def __init__(self, dia, mes, ano):
self.dia = str(dia)
self.mes = str(mes)
self.ano = str(ano)
def formatada(self):
if len(self.dia) < 2:
self.dia = '0' + self.dia
if len(self.mes) < 2:
self.mes = '0' + self.mes
print('{}/{}/{}'.format(self.dia, self.mes, self.ano))