def select_diamond(diamond_list): for diamond in diamond_list: if check_quality(diamond) == "no-go": avoid.append(diamond) else: purchase_plan.append({"item": diamond, "action": "buy", "reason": "quality check passed"}); if budget_constraint(preexpenditure): print("reevaluate your preexpenditure to avoid overspending."); schematic = generate_purchase_schematic(purchase_plan); reignite_your_desire_for_quality_jewelry(schematic); return purchase_plan