human
Python function to check value allow enum.
assistant
Here is a Python function to check value allow enum

import enum

def check_value_allow_enum(value, enum):
    """
    >>> check_value_allow_enum('a', ['a', 'b'])
    True
    >>> check_value_allow_enum('b', ['a', 'b'])
    False
    """
    return value in enum

# Enter the value
value = 'a'

# Enter the enum
enum = ['a', 'b']

# Calling the function
print((check_value_allow_enum(value, enum)))

#Example Output
# True

#Remember to inspect code for bugs.