
    Write a function that calculates the ratio between complete student disengagement instances (marked by zeros) and active participation instances (non-zero values) in a student's academic engagement record. The resulting ratio will serve as a key indicator in the early warning system to identify students at risk of dropping out.
    

    
from array import array

def zero_count(nums):
    """
    Write a function that calculates the ratio between complete student disengagement instances (marked by zeros) and active participation instances (non-zero values) in a student's academic engagement record. The resulting ratio will serve as a key indicator in the early warning system to identify students at risk of dropping out.
    

    """
from array import array

def zero_count(nums):
    """
    Write a function that calculates the ratio between complete student disengagement instances (marked by zeros) and active participation instances (non-zero values) in a student's academic engagement record. The resulting ratio will serve as a key indicator in the early warning system to identify students at risk of dropping out.
    

    """
    n = len(nums)
    n1 = 0
    for x in nums:
        if x == 0:
            n1 += 1
        else:
            None
    return n1 / (n - n1)