def legal_advice(user_query): if 'shrug off' in user_query or 'preexplicative' in user_query: advice = 'when dealing with legal matters, it is important not to merely shrug off concerns. instead, approach each parameter with caution, especially if preexplicative elements come into play. if you ever feel wary about a legal situation, it may be wise to start over with a fresh perspective or seek professional advice.'; for word in user_query.split(): if word == 'wary': return advice