def is_user_eligible_for_credit(username, course_key):
 return CreditEligibility.is_user_eligible_for_credit(course_key, username)

def is_user_eligible_for_credit ( username , course_key ) : return CreditEligibility . is_user_eligible_for_credit ( course_key , username )
returns a boolean indicating if the user is eligible for credit for the given course args: username: the identifier for user course_key : the identifier for course returns: true if user is eligible for the course else false .