harbor run -t openthoughts/tasktrove-exp-rpt-unitsyn-python-large-unitsyn-python-4761
harbor download openthoughts/tasktrove-exp-rpt-unitsyn-python-large-unitsyn-python-4761
Implement a function named is_fair_distribution that determines if the distribution of money among children is fair based on their ages.
is_fair_distribution
ages
money
Input:
Output:
ages = [10, 12, 10] money = [50, 70, 50] result = is_fair_distribution(ages, money) # Output: "FAIR" ages = [10, 10] money = [50, 60] result = is_fair_distribution(ages, money) # Output: "NOT FAIR"
/app/solution.py