
    Write a function that calculates the ratio between normal transactions and flagged suspicious activities in a bank's transaction monitoring system, where normal transactions are represented by zeros and suspicious activities are marked by non-zero flags. The resulting ratio helps fraud analysts quickly assess the current proportion of potentially fraudulent transactions across all banking channels in real-time.
    

    
from array import array

def zero_count(nums):
    """
    Write a function that calculates the ratio between normal transactions and flagged suspicious activities in a bank's transaction monitoring system, where normal transactions are represented by zeros and suspicious activities are marked by non-zero flags. The resulting ratio helps fraud analysts quickly assess the current proportion of potentially fraudulent transactions across all banking channels in real-time.
    

    """
from array import array

def zero_count(nums):
    """
    Write a function that calculates the ratio between normal transactions and flagged suspicious activities in a bank's transaction monitoring system, where normal transactions are represented by zeros and suspicious activities are marked by non-zero flags. The resulting ratio helps fraud analysts quickly assess the current proportion of potentially fraudulent transactions across all banking channels in real-time.
    

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