
    Given a patient's medication adherence record represented as a binary string where 1 indicates a taken dose and 0 indicates a missed dose, determine how many different medication compliance patterns emerge when analyzing the record by shifting the monitoring window by the specified number of days. Each shifted pattern should be converted to its decimal equivalent, and you need to count how many of these decimal values are odd numbers.
    

    
def odd_Equivalent(s, n):
    """
    Given a patient's medication adherence record represented as a binary string where 1 indicates a taken dose and 0 indicates a missed dose, determine how many different medication compliance patterns emerge when analyzing the record by shifting the monitoring window by the specified number of days. Each shifted pattern should be converted to its decimal equivalent, and you need to count how many of these decimal values are odd numbers.
    

    """
def odd_Equivalent(s, n):
    """
    Given a patient's medication adherence record represented as a binary string where 1 indicates a taken dose and 0 indicates a missed dose, determine how many different medication compliance patterns emerge when analyzing the record by shifting the monitoring window by the specified number of days. Each shifted pattern should be converted to its decimal equivalent, and you need to count how many of these decimal values are odd numbers.
    

    """
    count = 0
    for i in range(0, n):
        if s[i] == '1':
            count = count + 1
    return count