1
resposta

Desafio Opcional

class Data:

    def __init__(self, dia, mes, ano):
        self.dia = dia
        self.mes = mes
        self.ano = ano

    def formatada(self):
        print( '{}/{}/{}'.format(self.dia, self.mes, self.ano))
1 resposta

class Data:

def __init__(self, dd, mm, aaaa):
    self.dd = dd
    self.mm = mm        
    self.aaaa = aaaa

def formadata(self):
    print(f'{self.dd}/{self.mm}/{self.aaaa}')