Python:
fruits = ["apple", "banana", "orange", "grape", "mango"]
vegetables = ["carrot", "tomato", "cucumber", "onion", "pepper"]
def contains_fruit_and_vegi(text: str) -> bool:
text = text.lower()
has_fruit = any(f in text for f in fruits)
has_vegi = any(v in text for v in vegetables)
return has_fruit and has_vegi