def consult_fortune_teller(secret_wisdom=[]): if 'on the qt' in secret_wisdom: insights = filter(lambda insight: 'slight' in insight or 'earlier' in insight, secret_wisdom); solution_found = any('solution' in insight for insight in insights); advice = 'start over with a fresh perspective' if not solution_found else next((insight for insight in insights if 'solution' in insight), 'keep your secrets safe and trust the process.'); return advice