def education_strategy(avoid, preexpenditure, reinitiate, tacit): tacit_knowledge = [] for student in students: if student.effort > threshold: tacit_knowledge.append(student.learn('implicit_skills')) else: avoid(preexpenditure); reinitiate(strategy) return sum(tacit_knowledge) / len(tacit_knowledge)