def notes_enabled_for_course(course):
 tab_found = ('notes' in course.advanced_modules)
 feature_enabled = settings.FEATURES.get('ENABLE_STUDENT_NOTES')
 return (feature_enabled and tab_found)

def notes_enabled_for_course ( course ) : tab_found = ( 'notes' in course . advanced_modules ) feature_enabled = settings . FEATURES . get ( 'ENABLE_STUDENT_NOTES' ) return ( feature_enabled and tab_found )
returns true if the notes app is enabled for the course .