Complex sentence: In Canada, credits can be earned at the end of a course in high school, earning a credit depends whether a person passes the course or not.
Split into simpler sentences: In Canada, credits can be earned at the end of a course in high school. Earning a credit depends whether a person passes the course or not.