
    Given a student's subject mastery pattern represented as a binary number, where each '1' indicates a mastered learning objective and '0' indicates an area needing improvement, write a function to determine the total number of learning objectives the student has successfully mastered. The mastery pattern is provided as a single integer representing the binary pattern of achievements.
    

    
def count_Set_Bits(n):
    """
    Given a student's subject mastery pattern represented as a binary number, where each '1' indicates a mastered learning objective and '0' indicates an area needing improvement, write a function to determine the total number of learning objectives the student has successfully mastered. The mastery pattern is provided as a single integer representing the binary pattern of achievements.
    

    """
def count_Set_Bits(n):
    """
    Given a student's subject mastery pattern represented as a binary number, where each '1' indicates a mastered learning objective and '0' indicates an area needing improvement, write a function to determine the total number of learning objectives the student has successfully mastered. The mastery pattern is provided as a single integer representing the binary pattern of achievements.
    

    """
    count = 0
    while n:
        count += n & 1
        n >>= 1
    return count