 
 <prompt> John ti wa ni iye fun owo ti o wa ni lati gba iwe isin re. Ile re ni owo $250,000. O gba owo ti o ni owo 40% ti re. O lo 60% ti re lati fi iwe isin re pada. Nje owo ti o ni lati pada nigbati o ti fi iwe isin pada? Se fun Python.

```python
def leftover_money(home_value):
    loan_amount = home_value * 0.4
    debt_paid = loan_amount * 0.6
    leftover = loan_amount - debt_paid
    return leftover

home_value = 250000
print(leftover_money(home_value))
``` <response>: def solution():
    """John wa nípa lati gba ìdílé rẹ ní ìlọsí. Ile rẹ wá ni owo $250,000. O gba ìlọsí ti o wà 40% ti rẹ. O lò 60% ti rẹ lati fi àwọn òwo rẹ. Níbi tí o bá fi òwo rẹ, o kọjá ẹ̀kọ àwọn òwo?"""
    house_value = 250000
    loan_percent = 0.4
    loan_amount = house_value * loan_percent
    debt_percent = 0.6
    debt_amount = loan_amount * debt_percent
    leftover_amount = loan_amount - debt_amount
    result = leftover_amount
    return result 