class Girl:

    def __init__(self, interest=0):
        self.number = self.new_number()
self.interest = interest
super().__init__()

def new_number(self):
    n = '0000000000'
while '9' in n[3:6] or n[3:6] == '000' or n[6] == n[7] == n[8] == n[9]:
    n = str(random.randint(10 ** 9, 10 ** 10 - 1))
num_from_new_number = n[:3] + '-' + n[3:6] + '-' + n[6:]
return num_from_new_number
Назначение возврата функции в качестве другого параметра функции