0 out of 464 challenges solved
Write a Python function `find_substring(strings, substring)` that checks if a given substring is present in any of the strings within a list. The function should return `True` if the substring is found in at least one string, and `False` otherwise. #### Example Usage ```python [main.nopy] find_substring(["red", "black", "white", "green", "orange"], "ack") # Returns: True find_substring(["red", "black", "white", "green", "orange"], "abc") # Returns: False find_substring(["red", "black", "white", "green", "orange"], "ange") # Returns: True ```
def find_substring(strings, substring):
"""
Check if a substring is present in any string within a list.
Args:
strings (list of str): The list of strings to search within.
substring (str): The substring to search for.
Returns:
bool: True if the substring is found in any string, False otherwise.
"""
# Implement the function logic here
pass