def course_has_entrance_exam(course):
 if (not is_entrance_exams_enabled()):
  return False
 if (not course.entrance_exam_enabled):
  return False
 if (not course.entrance_exam_id):
  return False
 return True

def course_has_entrance_exam ( course ) : if ( not is_entrance_exams_enabled ( ) ) : return False if ( not course . entrance_exam_enabled ) : return False if ( not course . entrance_exam_id ) : return False return True
checks to see if a course is properly configured for an entrance exam .