def get_enrollment_attributes(user_id, course_id):
 course_key = CourseKey.from_string(course_id)
 user = _get_user(user_id)
 enrollment = CourseEnrollment.get_enrollment(user, course_key)
 return CourseEnrollmentAttribute.get_enrollment_attributes(enrollment)

def get_enrollment_attributes ( user_id , course_id ) : course_key = CourseKey . from_string ( course_id ) user = _get_user ( user_id ) enrollment = CourseEnrollment . get_enrollment ( user , course_key ) return CourseEnrollmentAttribute . get_enrollment_attributes ( enrollment )
retrieve enrollment attributes for given user for provided course .