human
Give me a Python function to check if a string is present in the list of strings.
assistant
Here is a Python function to check if string is present in list of strings

import re

def is_in_list(string, list):
    """
    >>> is_in_list("a", ["a", "b", "c"])
    True
    >>> is_in_list("a", ["a", "b", "c", "d"])
    False
    """
    return string in list

# Enter the string
string = "a"

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

# Calling the function
print((is_in_list(string, list)))

#Example Output
# True

#Remember to inspect code for bugs.