def teach(something): lesson = None // Aye, there's the rub... if knowsHowToTeach(): lesson = createLessonForSomething(something) else: lesson = teach(something) return lesson