
    Write a function to calculate the ratio of empty seats to occupied/reserved seats on a bus route, where the occupancy status of each seat is tracked in an array with 0 representing empty seats and non-zero values (1 or 2) representing occupied or reserved seats. This ratio helps transit authorities assess capacity utilization and make informed decisions about route optimization.
    

    
from array import array

def zero_count(nums):
    """
    Write a function to calculate the ratio of empty seats to occupied/reserved seats on a bus route, where the occupancy status of each seat is tracked in an array with 0 representing empty seats and non-zero values (1 or 2) representing occupied or reserved seats. This ratio helps transit authorities assess capacity utilization and make informed decisions about route optimization.
    

    """
from array import array

def zero_count(nums):
    """
    Write a function to calculate the ratio of empty seats to occupied/reserved seats on a bus route, where the occupancy status of each seat is tracked in an array with 0 representing empty seats and non-zero values (1 or 2) representing occupied or reserved seats. This ratio helps transit authorities assess capacity utilization and make informed decisions about route optimization.
    

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