human
Complete the below
def list_may_enroll(course_key, features):

    ''''Return info about students who may enroll in a course as a dict.
    list_may_enroll(course_key, [\'email\'])
    would return [
    {\'email\': \'email1\'}
    {\'email\': \'email2\'}
    {\'email\': \'email3\'}
    Note that result does not include students who may enroll and have
    already done so.'
    '''
assistant
#Here is the Python program you requested.
    may_enroll_and_unenrolled = CourseEnrollmentAllowed.may_enroll_and_unenrolled(course_key)
    def extract_student(student, features):
        '\n                                Build    dict    containing    information    about    a    single    student.\n                                '
        return dict(((feature, getattr(student, feature)) for feature in features))
    return [extract_student(student, features) for student in may_enroll_and_unenrolled]