human
how to check if a line contains any string from a list of strings and what the string is.
assistant
Here is a Python program to check if a line contains any string from a list of strings and what the string is

import re

def _contains_string(line, strings):
    """Checks if a line contains any string from a list of strings and what the string is."""
    for string in strings:
        if line.find(string)!= -1:
            return string
    return None

# Enter the line
line = "This is a line"

# Enter the list of strings
strings = ["a", "b", "c"]

# Calling the function
print((_contains_string(line, strings)))

#Example Output
# a

#Remember to inspect code for bugs.