
    Given a numeric encoding of a student's writing characteristics where each bit position represents a distinct writing feature (such as proper grammar usage, vocabulary diversity, or structural elements), create a function that determines how many positive writing attributes are present in the analysis by counting the number of set (1) bits in the encoded number. The writing features are encoded in binary format where 1 indicates the presence of a positive attribute and 0 indicates its absence.
    

    
def count_Set_Bits(n):
    """
    Given a numeric encoding of a student's writing characteristics where each bit position represents a distinct writing feature (such as proper grammar usage, vocabulary diversity, or structural elements), create a function that determines how many positive writing attributes are present in the analysis by counting the number of set (1) bits in the encoded number. The writing features are encoded in binary format where 1 indicates the presence of a positive attribute and 0 indicates its absence.
    

    """
def count_Set_Bits(n):
    """
    Given a numeric encoding of a student's writing characteristics where each bit position represents a distinct writing feature (such as proper grammar usage, vocabulary diversity, or structural elements), create a function that determines how many positive writing attributes are present in the analysis by counting the number of set (1) bits in the encoded number. The writing features are encoded in binary format where 1 indicates the presence of a positive attribute and 0 indicates its absence.
    

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